This is how I stick the sectionHeader to the top of collectionView when it scrolls
(collectionView.collectionViewLayout as? UICollectionViewFlowLayout)?.sectionHeadersPinToVisibleBounds = true;
The problem is that, when the header hit a footer, it gets pushed up by the footer.
How do we make sure that a header can only be pushed up by another header?
Thank you