Xcode 7.1.1: UICollisionBehavior loses boundaries after removing from animator

Originator:thedov
Number:rdar://23593048 Date Originated:18-Nov-2015 09:34 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.1.1 (7B1005)
Classification:Serious Bug Reproducible:Always
 
Summary:
When using UIKit Dynamics, you can’t add and remove a UICollisionBehavior from a UIDynamicAnimator without losing its list of boundaries.

Steps to Reproduce:
1. Build and run the sample project (the simulator is fine)
2. Tap the Add Collision button
3. Tap the Remove Collision button
4. Tap the Add Collision button again

Expected Results:
After step 2, the boot moves up above the blue box. After 3, it drops back down. After 4, it moves up again. After 2 and 4, “blue collision” is logged

Actual Results:
Nothing happens after step 4, snd “nil” is logged

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!