Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallax section header is not sticking to top while scrolling #9

Open
AtulSingh9490 opened this issue Jun 28, 2016 · 2 comments
Open

Comments

@AtulSingh9490
Copy link

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'

@mittenimraum
Copy link

+1

1 similar comment
@HumidBrains
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants