UICollectionView autosize and dynamic number of rows
问题 I am trying to do something like this: Basically, I am using a UICollectionView and the cells (3 diferent .xib ). So far, it works. The thing I want to do is: Set a autoheight If rotate, add 1 row to the UIColectionView 2.1 If tablet, on portrait will have 2 rows and landscape 3 rows. (which basically is the same of point 2, only adding 1 row. I have something like this: extension ViewController { override func viewWillTransition(to size: CGSize, with coordinator: