I'm trying to create a sticky supplementary header for a specific section, which stays on top all the time when the specific section touches on the navigation and won't overlay with other section headers. The solutions I found so far is working till 900 collectionView.contentOffset.y
. I followed with this code StickyLayout.swift.
And I have to set sectionHeadersPinToVisibleBounds = false
because I want to stick only one header on top while scrolling up/down depending on the position. Other section headers should not push out the sticky header.
As I'm doing this in Swift, it would be great to have an example in Swift.