Make the programmatic initializer public
Since the `init(frame:collectionViewLayout:)` initializer of UICollectionView had private access level, it was impossible to create an instance of `InfiniteCollectionView` programatically.
This commit is contained in:
@@ -31,7 +31,7 @@ public class InfiniteCollectionView: UICollectionView {
|
||||
super.init(coder: aDecoder)
|
||||
configure()
|
||||
}
|
||||
override init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) {
|
||||
override public init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) {
|
||||
super.init(frame: frame, collectionViewLayout: layout)
|
||||
configure()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user