Advertisement
Guest User

Untitled

a guest
May 6th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
  2.  
  3. if ( indexPath.row == 0){ // First item is always the featured item
  4. return K.exploreBigCellSize
  5. }else if ( indexPath.row % 2 != 0) { // odd
  6. return K.exploreSmallCellSize
  7. } else {
  8. return K.exploreMediumCellSize
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement