Skip to content

Commit f7da5cf

Browse files
committed
feat: Adjust the base class configuration
1 parent 92b7fd7 commit f7da5cf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Sources/Base/View/BaseView.swift

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ open class BaseView: UIView {
2828
/// *Must* call super if override
2929
@objc
3030
open dynamic func config() {
31+
translatesAutoresizingMaskIntoConstraints = false
32+
3133
addSubviews()
3234
addInitialLayout()
3335
}

Sources/Epoxy/CollectionView/CollectionView.swift

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ import EpoxyCollectionView
1717
open class CollectionView: EpoxyCollectionView.CollectionView {
1818
/// Proxy events related to context menu in `CollectionView`.
1919
public weak var contextMenuDelegate: CollectionViewContextMenuDelegate? = nil
20+
21+
override public init(layout: UICollectionViewLayout, configuration: CollectionViewConfiguration = .shared) {
22+
super.init(layout: layout, configuration: configuration)
23+
24+
showsVerticalScrollIndicator = false
25+
showsHorizontalScrollIndicator = false
26+
}
2027
}
2128

2229
// MARK: - UICollectionViewDelegate

0 commit comments

Comments
 (0)