Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adjust the base class configuration #52

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/Base/View/BaseView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ open class BaseView: UIView {
/// *Must* call super if override
@objc
open dynamic func config() {
translatesAutoresizingMaskIntoConstraints = false

addSubviews()
addInitialLayout()
}
Expand Down
7 changes: 7 additions & 0 deletions Sources/Epoxy/CollectionView/CollectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ import EpoxyCollectionView
open class CollectionView: EpoxyCollectionView.CollectionView {
/// Proxy events related to context menu in `CollectionView`.
public weak var contextMenuDelegate: CollectionViewContextMenuDelegate? = nil

override public init(layout: UICollectionViewLayout, configuration: CollectionViewConfiguration = .shared) {
super.init(layout: layout, configuration: configuration)

showsVerticalScrollIndicator = false
showsHorizontalScrollIndicator = false
}
}

// MARK: - UICollectionViewDelegate
Expand Down