Closed almas73 closed 7 years ago
Very interesting. This could actually improve display event notifications sent when a supplementary view is about to appear but the cells haven't yet.
Since we support iOS 8+ this should be easy. We can tap into:
- (void)collectionView:(UICollectionView *)collectionView
willDisplaySupplementaryView:(UICollectionReusableView *)view
forElementKind:(NSString *)elementKind
atIndexPath:(NSIndexPath *)indexPath;
- (void)collectionView:(UICollectionView *)collectionView
didEndDisplayingSupplementaryView:(UICollectionReusableView *)view
forElementOfKind:(NSString *)elementKind
atIndexPath:(NSIndexPath *)indexPath;
To give us display start/end events and use the display handler. Great find @almas73!
New issue checklist
README
and documentationGeneral information
IGListKit
version: latest on masterWith the current implementation non of the display delegates are called when number of items is equal to 0. It makes sense that these two methods are not called:
but I think the other two must be called since the section is displayed and has content (supplementary views):