Learn all about using collection views in iOS
starting with the basics, such as setting up a collection view in Interface Builder, and then move right through to some more advanced topics, like creating and manipulating custom cells and layouts.
reference https://www.raywenderlich.com/4448-beginning-collection-views