Apple's documentation on UICollectionView: https://developer.apple.com/documentation/uikit/uicollectionview Apple's documentation UICollectionViewLayout: https://developer.apple.com/documentation/uikit/uicollectionviewlayout