Build Instagram like UI using Compositional Layout | Swift | Xcode

Compositional Layouts can help us build very complex UIs in no time. In this video, I have taken Instagram’s search screen as use case (having a staggered layout) and have replicated the same UI using compositional layout. I’ve also explained the differences between conventional Flow Layout and Compositional Layout. At the end of the video, I’ve also shown that how compositional layouts can help us in making components like carousel with minimal efforts. Here’s the link of gist 👇🏼 https://gist.github.com/pallavtrivedi... Chapters 👇🏼 00:00 Start 01:44 Basic Setup (UICollectionView) 03:38 Anatomy of CollectionViewFlowLayout 04:10 Anatomy of CompositionalLayout 05:25 Explanation of Approach 06:24 Compositional Layout - Implementation 22:29 Final Output 23:36 Carousel Implementation