Building Nested Layouts | raywenderlich.com


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:

  1. 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?

  2. 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

@pasanpr Can you please help with this when you get a chance? Thank you - much appreciated! :]