Compositional Layout

First introduced in iOS 13, UICollectionViewCompositionalLayout is an amazing and powerful addition that gives you lots of flexibility when describing layouts. There are a few new types to get used to (namely sections, groups, and items) but they all work together allowing you to keep layout separate from your views and your data.

This is a companion discussion topic for the original entry at https://nsscreencast.com/episodes/453-modern-collection-views-04-compositional-layout