Section Header Reload on performUpdates()
New issue checklist
- [✓] I have reviewed the
READMEand documentation - [ ✓] I have searched existing issues and this is not a duplicate
- [x] I have attempted to reproduce the issue and include an example project.
General information
-
IGListKitversion: 3.4.0 - iOS version(s): 10+
- CocoaPods/Carthage version: 1.7.0
- Xcode version: 10.3 (10G8)
- Devices/Simulators affected: All
- Reproducible in the demo project? (Yes/No):
- Related issues:
I have a vertically scrolling list with multiple sections. Each has a sticky header and contains a count of the number of rows in the section. Is it possible to have the section header/redraw along with the section when the diffing logic indicates changes?
I have tried playing with the UICollectionViewLayoutInvalidationContext, but it crashes the library internally because it is expecting an instance of IGListCollectionViewLayoutInvalidationContext. I like the look of this object because of ig_invalidateSupplementaryAttributes, but I don't see a way to actually use it.
Can someone shed some light on getting my section headers to refresh when the section itself changes?
We have find it way easier to deal with section headers if implemented like normal ListSectionControllers. IGListKit allows more granular control for some of the operations you mentioned above.
@attheodo Great idea, thanks!
Hey @attheodo - was your team able to achieve sticky headers with the approach you mentioned?