I am currently implementing infinite scrolling using collectionView
by following this link. But I got stuck when I have to add collectionView
sectionheader
. The header doesn't shows up when I am implemeting the above link custom flow layout, but if I use default UICollectionViewLayout
it's been displayed.
Implemented the method : -
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize