[ASCollectionView] Fix index space translation of Flow Layout Delegate methods. (#467)

* [ASCollectionView] Fix index space translation of Flow Layout Delegate methods.

This includes a few other cleanups, including overflow of signed integer indices.

* [ASCollectionView] Improve code sharing of UIKit size method calls; ensure delegate invalidation re-fetches supplementary sizes too.

* [ASCollectionView] Final method ordering and doc-comment for new _sizeForUIKitCellWithKind:atIndexPath: method.
This commit is contained in:
appleguy
2017-10-09 09:19:46 -07:00
committed by Huy Nguyen
parent 550da242b7
commit c6e3dd7a5d
8 changed files with 137 additions and 49 deletions

View File

@@ -296,6 +296,11 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (nullable NSIndexPath *)indexPathForNode:(ASCellNode *)cellNode AS_WARN_UNUSED_RESULT;
/**
* Invalidates and recalculates the cached sizes stored for pass-through cells used in interop mode.
*/
- (void)invalidateFlowLayoutDelegateMetrics;
- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated;
@end