Check out How to UICollectionView by JR. Here is an excerpt:
Drag out Single View Controller. Add a CollectionView.
Pin it to the walls.
Implement the interfaces
The create an data struct and fill it with data.
Create a UICollectionViewCell.
Add a label to the cell in the story board.
Connect the cell in the storyboard to the UICollectionViewCell we…
The full article is available here.