My goal is to create a UICollectionView
with a layout as depicted below.
Use UICollectionViewDelegateFlowLayout method.
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
let width : CGFloat
let height : CGFloat
if indexPath.item == 0 {
width = 100
height = 100
} else {
width = 50
height = 50
}
return CGSizeMake(width, height)
}