I'm working with UICollectionView and self-sizing cells using a cell with Auto-Layout and setting estimatedItemSize.
The problem I'm running into is that the UICollectionView appears to be animating the difference between what the cell's actual size is and what the estimatedItemSize was. This is really not useful and I'm trying to figure out how to stop it.
In my cellForItematIndexPath method I do the cell configuration and run a layout with layoutIfNeeded. I've tried wrapping all of this with CATransaction/kCATransactionDisableActions, UIView/performWithoutAnimation and UIView/animateWithDuration:0, all with no effect.
I *can* disable animations on batch updates by wrapping the UICollectionView's performBatchUpdates with a UIView/animateWithDuration:0 but this doesn't prevent the cell by cell animation as the user scrolls through the collectionView.
Does anybody have an idea if my suspicion is correct and what I can do about it?
Using Xcode 8.2.1 and testing on iOS 10.2
Thanks!