IOStickyHeader
IOStickyHeader copied to clipboard
Parallax section header is not sticking to top while scrolling
The section headers are not sticking while scrolling even if the disableStickyHeaders = false and parallaxHeaderAlwaysOnTop = true.
Also, if I do, flowLayout.sectionHeadersPinToVisibleBounds = true
It crashes on scrolling and gives error,
Assertion failure in -[UICollectionViewData validateLayoutInRect:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UICollectionViewData.m:408 2016-06-28 18:39:48.980 [37977:1357753] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'layout attributes for supplementary item at index path (<NSIndexPath: > {length = 1, path = 0}) changed from <App.IOStickyHeaderFlowLayoutAttributes: 0x7ffecbaa4da0> index path: (<NSIndexPath: 0x7ffecbaab530> {length = 1, path = 0}); element kind: (IOStickyHeaderParallexHeader); frame = (0 0; 375 175); to <App.IOStickyHeaderFlowLayoutAttributes: 0x7ffecbab1000> index path: (<NSIndexPath: 0x7ffecba9c2b0> {length = 1, path = 0}); element kind: (IOStickyHeaderParallexHeader); frame = (0 115; 375 60); without invalidating the layout'
+1
+1