The order of animations inside coordinator.addCoordinatedAnimations is incorrect

Originator:mail
Number:rdar://24279149 Date Originated:21-Jan-2016 06:04 PM
Status:Closed Resolved:Yes
Product:tvOS SDK Product Version:tvOS 9.2
Classification: Reproducible:
 
Summary:
When performing animations inside coordinator.addCoordinatedAnimations in didUpdateFocusInContext:withAnimationCoordinator:  and scrolling fast through the cells in a collection view, the animations occurs in (what seems to be a) random order.

Steps to Reproduce:
1. Create a subclass of UICollectionViewCell and override didUpdateFocusInContext:withAnimationCoordinator: to perform some animation.
2. Create a collection view and populate it with a significant amount of cells. Make sure the collection view is scrollable, e.g. horizontally.
3. Run the app on the Apple TV and scroll fast through the cells.
4. Notice that the animations happens in an incorrect order.

Expected Results:
The animations should happen in the same order as the cells are scrolled.

Actual Results:
The animations happens in the incorrect order.

Version:
tvOS 9.2 beta 1

Notes:


Configuration:
Apple TV 4th generation

Attachments:

Comments

Sample code: http://d.4su.re/Wyxo


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!