1

As you can see in the first picture which i uploaded below.i have 3 segments.In the first segment collection view must be seems like that.However,when i click other segments it must disappear.Collection view must be between navigation view and contents view.Also, i uploaded another picture which is my storyboard.I'm waiting for your help. Thank you!

The Design should be like that

Picture of my Storyboard

2 Answers2

0

You need to implement

func collectionView(_ collectionView: UICollectionView, 
                  layout collectionViewLayout: UICollectionViewLayout, 
           sizeForItemAt indexPath: IndexPath) -> CGSize
   return CGSize(width:<#width#>,height:<#height#>)
}
Sh_Khan
  • 86,695
  • 6
  • 38
  • 57
0

this question is already answered in another place on stackoverflow

How to make a simple collection view with Swift

i think that is all you need to know

Dante
  • 62
  • 11