fix compilation

This commit is contained in:
Ivan Smolin 2016-10-19 19:33:15 +03:00
parent 2b584d0574
commit 67bfde33db
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public extension UICollectionView {
public func registerNib<T>(forCellClass cellClass: T.Type)
where T: ReuseIdentifierProtocol, T: UICollectionViewCell, T: StaticNibNameProtocol {
register(UINib(nibName: T.nibName), forCellReuseIdentifier: T.reuseIdentifier)
register(UINib(nibName: T.nibName), forCellWithReuseIdentifier: T.reuseIdentifier)
}
/**
@ -41,7 +41,7 @@ public extension UICollectionView {
where T: ReuseIdentifierProtocol, T: UICollectionViewCell, T: NibNameProtocol {
let nib = UINib(nibName: T.nibName(forConfiguration: interfaceIdiom))
register(nib, forCellReuseIdentifier: T.reuseIdentifier)
register(nib, forCellWithReuseIdentifier: T.reuseIdentifier)
}
}