I want to create Photo Collage with customised layout as following image. i am not getting idea about how can i create collage in swift3. .I am confused about using UIView controller or UICollectionView.Please anyone suggest me that how can i implement it

**Please Note:** I have tried Collection view and also referred This tutorial : [How to make collage of images according to different shapes](https://stackoverflow.com/questions/21619968/how-to-make-collage-of-images-according-to-different-shapes/) but its not working properly.

[![enter image description here](https://i.stack.imgur.com/yguxh.jpg)](https://i.stack.imgur.com/yguxh.jpg)