BigBoy1337
BigBoy1337

Reputation: 5023

CollectionView cells appearing outside collectionView.

I have a collectionView laid out in the storyboard like so:

enter image description here

Note the constraint: Collection View.top = Search Bar.bottom

I don't want any of the content in the collection View above that line. However when the app runs and you scroll the collectionView, this is what happens to the cells. What could be happening here?

enter image description here

Upvotes: 0

Views: 223

Answers (1)

Magoo
Magoo

Reputation: 2636

Probably collectionView.clipsToBounds = true

Upvotes: 3

Related Questions