Removes UICollectionViewFlowLayout requirement. This allows custom collection view layouts.

This commit is contained in:
Rene Cacheaux
2015-06-23 13:39:12 -05:00
parent e5f2f820c4
commit 0b8f10e488

View File

@@ -142,7 +142,6 @@ static BOOL _isInterceptedSelector(SEL sel)
// https://github.com/facebook/AsyncDisplayKit/issues/385 // https://github.com/facebook/AsyncDisplayKit/issues/385
asyncDataFetchingEnabled = NO; asyncDataFetchingEnabled = NO;
ASDisplayNodeAssert([layout asdk_isFlowLayout], @"only flow layouts are currently supported");
_layoutController = [[ASCollectionViewLayoutController alloc] initWithCollectionView:self]; _layoutController = [[ASCollectionViewLayoutController alloc] initWithCollectionView:self];
_rangeController = [[ASRangeController alloc] init]; _rangeController = [[ASRangeController alloc] init];