Building Nested Layouts |

This is a companion discussion topic for the original entry at

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?


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