Skip to main content

UICollectionView Spacing

There are a few aspects to handling spacing and size of UICollectionViews and their cells. Lets start with the spacing around the actual uicollectionview. To do this we effectively add padding or edge insets. You can add edges to all sides of the collection view.

Now what about the cells within the UICollectionView. We can set […]

Read More

UICollectionViewCell Segue

When using a UICollectionView, you may want to pass data from one controller to another when a user clicks on the collection view cells. In order to do this, we need to find the item that has been clicked on. With the uicollectionview and segue setup within the storyboard, you can use the prepareForSegue function […]

Read More