Tony Friz Tony Friz - 1 month ago 10
iOS Question

UICollectionView in iOS 10 is misaligning cells

I have a collection view that used to look like this (iOS 9-):

Correctly (and previously) displayed UICollectionView

As of iOS 10 however, that exact same untouched collection view is displaying like this:

Incorrectly displayed UICollectionView as of iOS 10

No constraints or anything really have been changed from iOS 9 to iOS 10. I simply cannot figure out what the issue is. If it helps, the only constraints on this collection view are 0 spacing stuck to top, left, right and bottom:

enter image description here

Any help is greatly appreciated.

Answer

The issue was I forgot to add constraints for the containing view. Fixed.