UINavigationBar doesn't transition barTintColor or titleTextAttributes properly with non-interactive pop

Number:rdar://37567828 Date Originated:15-Feb-2018 02:57 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.2 (15C107)
Classification:UI/Usability Reproducible:Always
Let's say you have two view controllers, one of which you want to have a different color navigation bar and/or navigation bar title color than the other.

Theoretically, you'd want the barTintColor and titleTextAttributes changes to change along with the view controller transition instead of popping in to place.

In practice:

- Pushing the second view controller works as expected
- Performing a swipe back from the second to the first works as expected
- Tapping the back button causes the barTintColor to pop in, and the titleTextAttributes to fail to change entirely.

Steps to Reproduce:
1. Open sample project. 
2. Tap “Tap me” cell
3. Tap back button. Observe the barTintColor and tintColor pops in rather than fading in, and the titleTextAttributes do not adjust at all. 
4. Tap “Tap me” cell again
5. Perform a swipe-to-go-back gesture. Observe that all changes fade nicely as the transition goes on, regardless of the transition’s length. 
6. Locate beer [optional].

Expected Results:
Non-interactive and interactive transitions should have equally good look transitioning the nav bar and its different states. 

Actual Results:
Really goofy looking transition on barTintColor and incorrect transition with title text attributes.

11.2 (15C107)

Please see attached demo project and video. 

Workarounds the community has found include: 


Sample project submitted with this available at https://github.com/designatednerd/FileARadar/tree/master/NavBarTransitionFuntimes

By designatednerd at Feb. 15, 2018, 2:01 p.m. (reply...)

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!