Conversion from Objective-C to Swift of UICollectionView sample in Techtopia