AKPCollectionViewFlowLayout
class AKPCollectionViewFlowLayout: UICollectionViewFlowLayout
Global / Sticky / Stretchy Headers using UICollectionViewFlowLayout. Works for iOS8, iOS9 and above.
-
Undocumented
Declaration
Swift
class AKPCollectionViewFlowLayout: UICollectionViewFlowLayout
-
Undocumented
Declaration
Swift
class AKPCollectionViewFlowLayout: UICollectionViewFlowLayout
-
Adds custom sticky header to the UICollectionViewFlowLayout attributes
Declaration
Swift
override func layoutAttributesForElementsInRect(rect: CGRect) -> [UICollectionViewLayoutAttributes]?
-
Adjusts layout attributes for the custom sections
Declaration
Swift
override func layoutAttributesForSupplementaryViewOfKind(elementKind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionViewLayoutAttributes?
-
Declaration
Swift
override func shouldInvalidateLayoutForBoundsChange(newBounds: CGRect) -> Bool
Return Value
true
, unless running on iOS9 withsectionHeadersPinToVisibleBounds
set totrue
-
Custom invalidation context
Declaration
Swift
override func invalidationContextForBoundsChange(newBounds: CGRect) -> UICollectionViewLayoutInvalidationContext