Too Long; Didn't Read
Compositional Layout lets you create complex and intricate collection views in SwiftUI. SwiftUI is an extremely useful framework to create complex views. We will create a simple collection view layout that has horizontal scrolling. Each row contains three cells, one on the left side and two stacked together on the right. The CollectionViewCell and UICollectionView code is quite simple. I have created an array of arrays in which I have just added a collection view and a subview. Then I have added the collectionView as a subView and a collectionView sub.