UICollectionView with self-sizing cells resizes cells during insert/remove animation or performBatchUpdates

I post an issue related to this radar: http://www.openradar.me/35038472


A UICollectionView with a UICollectionViewFlowLayout should allow autolayout to allow for self-sizing cells.

This works for static layouts, but when items are inserted or removed the cells resize to the estimated size before expanding again.


Expected Results: When inserting/removing items, the cells maintain their size.


Actual Results: Cells reset to their estimated size before expanding to their actual size.

iOS 11.0.2


It's forcing me to avoid using self-sizing cells, because I can't animate state changes! Is there a workaround?

Were you able to find a workaround for this issue?

I have the same issue on iOS 13.4, with cells and supplementary views in a custom layout. A workaround would be highly appreciated...

UICollectionView with self-sizing cells resizes cells during insert/remove animation or performBatchUpdates
 
 
Q