Here is an design issue in the app that uses AutoLayout, UICollectionView and UICollectionViewCell that has automatically resizable width & height depending on AutoLayout co
To calculate the CollectionView cell's size dynamically, just set the flow layout property to any arbitrary value:
CollectionView
let flowLayout = collectionView.collectionViewLayout as! UICollectionViewFlowLayout flowLayout.estimatedItemSize = CGSize(width: 0, height: 0)