UINavigationBar's barTintColor doesn't animate during animateAlongsideTransition.
| Originator: | coultonvento | ||
| Number: | rdar://26893274 | Date Originated: | 6/20/2016 |
| Status: | Resolved: | ||
| Product: | iOS SDK | Product Version: | |
| Classification: | Reproducible: | Always |
Area: UIKit Summary: The barTintColor property on UINavigationBar is not properly animating between transitions when using animateAlongsideTransition. Steps to Reproduce: 1. Setup an app that consists of one navigation controller. 2. In the animation block of `animateAlongsideTransition:completion:`, set the UINavigationBar's barTintColor to a different color. This should animate. 3. Build/run 4. Now push and pop view controllers. Notice the results. Expected Results: The UINavigationBar's barTintColor should animate the same way tintColor does. Actual Results: When popping and pushing view controllers, the UINavigationBar's barTintColor is not animating (tintColor is, however). It's being set at the very end of the transition. Version: iOS 9.3 (iPhone 6S, 6S+) Notes: I've only noticed this behavior on an iPhone 6, 6S, and 6S+ (all running iOS 9.3). This problem does not exist in the associated iOS 9.3 simulators. As of 6/20/16, the iOS 10 simulators exhibit the same behavior (not animating the transition in animateAlongsideTransition). Configuration: iPhone 6, iPhone 6S, iPhone 6S+ Attachments: 'UINavigationBar tinting test.zip' was successfully uploaded.
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 am also seeing this using UIView animateWithDuration: animations:.