Skip to content

Commit

Permalink
Merge pull request #52 from RakuyoKit/feature/2024-07-03
Browse files Browse the repository at this point in the history
feat: Adjust the base class configuration
  • Loading branch information
rakuyoMo authored Jul 3, 2024
2 parents 92b7fd7 + f7da5cf commit 374aa45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 374aa45

Please sign in to comment.