diff --git a/DTCollectionViewManager.podspec b/DTCollectionViewManager.podspec index 415a910..0f0ed42 100644 --- a/DTCollectionViewManager.podspec +++ b/DTCollectionViewManager.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'DTCollectionViewManager' - s.version = '2.6.1' + s.version = '2.6.2' s.license = 'MIT' s.summary = 'The most simple and robust way to manage UICollectionView.' s.homepage = 'https://github.com/DenHeadless/DTCollectionViewManager' diff --git a/DTCollectionViewManager/DTCollectionViewFactory.m b/DTCollectionViewManager/DTCollectionViewFactory.m index b91eaa4..383ddf5 100644 --- a/DTCollectionViewManager/DTCollectionViewFactory.m +++ b/DTCollectionViewManager/DTCollectionViewFactory.m @@ -81,8 +81,7 @@ - (void)registerCellClass:(Class)cellClass forModelClass:(Class)modelClass - (void)registerNibNamed:(NSString *)nibName forCellClass:(Class)cellClass forModelClass:(Class)modelClass { - BOOL nibExists = [self nibExistsWithNibName:nibName]; - NSParameterAssert(nibExists); + NSParameterAssert([self nibExistsWithNibName:nibName]); [[self.delegate collectionView] registerNib:[UINib nibWithNibName:nibName bundle:nil] forCellWithReuseIdentifier:[self reuseIdentifierFromClass:cellClass]]; @@ -112,9 +111,7 @@ - (void)registerNibNamed:(NSString *)nibName forKind:(NSString *)kind forModelClass:(Class)modelClass { - BOOL nibExists = [self nibExistsWithNibName:nibName]; - - NSParameterAssert(nibExists); + NSParameterAssert([self nibExistsWithNibName:nibName]); [[self.delegate collectionView] registerNib:[UINib nibWithNibName:nibName bundle:nil]