In this video tutorial, we sort the collection view into multiple sections with each displaying a title.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3819-beginning-collection-views/lessons/4
In this video tutorial, we sort the collection view into multiple sections with each displaying a title.
layout.itemSize and layout.sectionHeadersPinToVisibleBounds is not working in my code. Swift error: Value type “UICollectionViewLayout” has no member “itemSize”
You might have written like this,
let layout = collectionViewLayout as! UICollectionViewLayout
where as it should be like this,
let layout = collectionViewLayout as! UICollectionViewFlowLayout
Yes you are right! thanks