Large navigation titles don't respect titleTextAttributes

Originator:wjwickham
Number:rdar://32674641 Date Originated:6/9/2017
Status:Open Resolved:-
Product:iOS + SDK Product Version:11.0 (15A5278f)
Classification:Bug Reproducible:Always
 
Summary:
When UINavigationBar displays its title in the large type style, the title should respect any titleTextAttributes set on the navigation bar.

Steps to Reproduce:
1. Create a navigation controller with a root view controller that has scrollable content (e.g. a UITableViewController) as the root
2. Set a foreground color in the navigation bar's titleTextAttributes
3. Run the app: the large type title will display in black, ignoring the foreground color, while the "compact" title size (shown after scrolling the table view) shows the desired foreground color.

Expected Results:
Both the large- and normal-size titles should respect the foreground color assigned in titleTextAttributes

Observed Results:
Only the normal-size title respects the foreground color assigned in titleTextAttributes, while the large title displays in black.

Comments

This is as designed.

The large titles are controlled by .largeTitleTextAttributes, not .titleTextAttributes.

Set your color in .largeTitleTextAttributes instead.


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!