I am trying to implement a CollectionView.
When I am using Autolayout, my cells won\'t change the size, but their alignment.
Now I would rather want to
So you need to setting from storyboard for attribute for collectionView in cell section estimate Size to none, and in your ViewController you need had delegate method for implementing this method : optional func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize