diff --git a/LeadKit/LeadKit/Extensions/UICollectionView/UICollectionView+CellRegistration.swift b/LeadKit/LeadKit/Extensions/UICollectionView/UICollectionView+CellRegistration.swift index 67a1d8a7..b543830c 100644 --- a/LeadKit/LeadKit/Extensions/UICollectionView/UICollectionView+CellRegistration.swift +++ b/LeadKit/LeadKit/Extensions/UICollectionView/UICollectionView+CellRegistration.swift @@ -22,7 +22,7 @@ public extension UICollectionView { public func registerNib(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) } }