UINavigationBar Large Title doesn't respect UIAppearance
| Originator: | carpeaqua | ||
| Number: | rdar://32675423 | Date Originated: | 06/09/17 |
| Status: | Open | Resolved: | |
| Product: | UIKit | Product Version: | 11.0 Seed 1 |
| Classification: | Reproducible: | Always |
Area:
UIKit
Summary:
In seed 1 of iOS 11, if you prefer the new large title functionality, it does not respect any values you set on the titleTextAttributes attribute of UINavigationBar. This is less than ideal for us. Our app uses a solid color background that doesn't play nicely with black text. We'd like to see this improved in a future seed.
Steps to Reproduce:
1. Create a view controller.
2. Add the following code to viewDidLoad.
self.navigationController?.navigationBar.titleTextAttributes = [
NSAttributedStringKey.foregroundColor.rawValue: UIColor.red,
NSAttributedStringKey.font.rawValue: UIFont.preferredFont(forTextStyle: .body)
]
3. Notice that it doesn't respect the values unless you scroll the view so the large title disappears.
Expected Results:
It is respected.
Observed Results:
N/A
Version:
iOS 11 Seed 1
Notes:
Configuration:
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!