Add support for loaded node layout for supplementary views

This commit is contained in:
Levi McCallum
2015-10-12 16:06:52 -07:00
parent 952a66a924
commit ee0cc2001a
5 changed files with 56 additions and 38 deletions

View File

@@ -735,7 +735,6 @@ static BOOL _isInterceptedSelector(SEL sel)
{
ASCellNode *node = [_asyncDataSource collectionView:self nodeForSupplementaryElementOfKind:kind atIndexPath:indexPath];
ASDisplayNodeAssert(node != nil, @"A node must be returned for a supplementary node");
ASDisplayNodeAssert(!node.nodeLoaded, @"The supplementary node must not be loaded");
return node;
}