UICollectionViewCell size is reset to estimatedItemSize during the animation using moveItemAtIndexPath:toIndexPath

Originator:alejandro.mendez
Number:rdar://40460705 Date Originated:05/22/2018
Status:Open Resolved:
Product:iOS + SDK Product Version:11
Classification: Reproducible:Always
 
Area:
UIKit

Summary:
When reordering auto-sized cell, the cells size changes to the estimatedItemSize when the cells are being rearranged (moveItemAtIndexPath:toIndexPath, etc.).

Steps to Reproduce:
Create a collection view with a flow layout, including an auto-sized cell using auto-layout. Call 'moveItemAtIndexPath:toIndexPath' on the collection view. 

Expected Results:
The cells animate to the new position and maintain their size during the animation.

Actual Results:
The cells animate to the new position, but during the animation the cell size is reset to the estimatedItemSize. The cell dimension is restored to the expected dimension after the animation ends.

Version/Build:
Tested on iOS 11.3

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!