i'm trying to create a UICollectionView with the type of layout as the image I've attached. And i'm a little confused as to how to achieve this layout. 

After doing some googling it seems like I need to write a custom UICollectionViewFlowLayout, but I can't seem to find any examples of layouts that have different section counts per item.

if you look at the mockup the first item has one section. The image is Landscape, but the middle item has 2 sections with 2 portrait images. 

Am I looking into the wrong thing? could someone point me in the right direction? 

![Layout Mockup](https://i.stack.imgur.com/eG7wR.png)