UICollectionView with self-sizing cells resizes cells during insert/remove animation or performBatchUpdates
Originator: | egill | ||
Number: | rdar://35038472 | Date Originated: | October 17. 2017 |
Status: | Resolved: | ||
Product: | UIKit | Product Version: | iOS 11.0.2 |
Classification: | Reproducible: | Always |
Area: UIKit Summary: 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. Steps to Reproduce: See Sample project attached to rdar://23728611 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. Version/Build: iOS 11.0.2 Notes: This is still broken on iOS 11! It's forcing me to avoid using self-sizing cells, because I can't animate state changes! Is there a workaround?
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
I'm experiencing the same, though only on physical devices. Oddly, inserting self-sizing cells on the simulator works perfectly.
Same issue for me... I didn't found a workaround for now.