You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
Improve Our Handling of Flow Layout Headers/Footers (#2939)
* Rejigger our flow layout supplementary support to make more sense.
* Support old protocol
* Update
* Update deprecation message
* Undeprecate insetForSection method, because it actually _does_ still work
* Update the tests
* Remove irrelevant junk
* Remove cast, add pragma
* Asks the delegate for the size range that should be used to measure the header in the given flow layout section.
434
+
*
435
+
* @param collectionNode The sender.
436
+
* @param section The section.
437
+
*
438
+
* @return The size range for the header, or @c ASSizeRangeZero if there is no header in this section.
439
+
*
440
+
* If you want the header to completely determine its own size, return @c ASSizeRangeUnconstrained.
441
+
*
442
+
* @note Only the scrollable dimension of the returned size range will be used. In a vertical flow,
443
+
* only the height will be used. In a horizontal flow, only the width will be used. The other dimension
444
+
* will be constrained to fill the collection node.
445
+
*
446
+
* @discussion If you do not implement this method, ASDK will fall back to calling @c collectionView:layout:referenceSizeForHeaderInSection:
447
+
* and using that as the exact constrained size. If you don't implement that method, ASDK will read the @c headerReferenceSize from the layout.
433
448
*/
434
-
- (UIEdgeInsets)collectionView:(ASCollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section ASDISPLAYNODE_DEPRECATED_MSG("This method does nothing for 1.9.7+ due to incorrect implementation previously, see the header file for more information.");
0 commit comments