This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5429927-beginning-collection-views/lessons/23
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5429927-beginning-collection-views/lessons/23
Hi Pasan,
I have a couple of questions regarding the video:
-
Why are we using the sectionProvider init of the UICollectionViewCompositionalLayout when weโre not distinguishing between sections or using the layoutEnvironment parameter within the sectionProvider?
-
At the 01:25 mark of the video, you mentioned that we could provide different itemSizes to the collectionView items, based on sections, using UICollectionViewDatasource protocol methods. But wouldnโt the protocol methods of UICollectionViewDelegateFlowLayout be a more appropriate place to do that?
Thanks