Skip to content

Commit

Permalink
Add initializer in CollectoinView with frame and layout
Browse files Browse the repository at this point in the history
Solve issue: netcosports#45
  • Loading branch information
netcosportsanatoly committed May 23, 2019
1 parent 0c3ed6a commit d7911ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Core/CollectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ open class CollectionView<T: ReusableSource>: UICollectionView, AccessorView whe
public typealias Source = T
public let source = T()

public required init() {
super.init(frame: .zero, collectionViewLayout: CollectionViewSource.defaultLayout)
public required override init(frame: CGRect = .zero, collectionViewLayout layout: UICollectionViewLayout? = nil) {
super.init(frame: frame, collectionViewLayout: layout ?? CollectionViewSource.defaultLayout)
internalInit()
}

Expand Down

0 comments on commit d7911ca

Please sign in to comment.