I am trying to implement a CollectionView. When I am using Autolayout, my cells won\'t change the size, but their alignment.
CollectionView
Now I would rather want to
An other way is to set the value directly in the flow layout
let layout = collectionView.collectionViewLayout as! UICollectionViewFlowLayout layout.itemSize = CGSize(width: size, height: size)