Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
- if ( indexPath.row == 0){ // First item is always the featured item
- return K.exploreBigCellSize
- }else if ( indexPath.row % 2 != 0) { // odd
- return K.exploreSmallCellSize
- } else {
- return K.exploreMediumCellSize
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement