Skip to content

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

@AtulSingh9490

Description

@AtulSingh9490

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions