Free Custom Collection View Layout tutorial, Collection view layouts are subclasses of the abstract class UICollectionViewLayout . They define the visual attributes of every item in your collection view. The individual attributes are instances of UICollectionViewLayoutAttributes .