UIAppearance proxy for setTitleTextAttributes(_:for:) is missing the type update for the attribute dictionary
| Originator: | oscar | ||
| Number: | rdar://32695523 | Date Originated: | 10/06/17 |
| Status: | Closed | Resolved: | Fixed in Xcode 9 beta 2 |
| Product: | UIKit | Product Version: | iOS 11 b1 |
| Classification: | bug | Reproducible: | Always |
Area: UIKit Summary: When dealing with appearance attributes, most of UIKit is now updated to accept attributes with a dicationary typed [NSAttributedStringKey:Any], however, the `setTitleTextAttributes(_:for:)` method on the UIAppearance proxy for UITabBarItem still requires the attributes to be [String:Any], which requires to pass attributes in this form: [NSAttributedStringKey.font.rawValue: UIFont()]. This is inconsistent with the rest of UIKit. Steps to Reproduce: Try setting the title attributes to a UITabBarItem through the appearance proxy using the new NSAttributedStringKey type. Expected Results: The method should accept a dictionary typed [NSAttributedStringKey:Any] Observed Results: The method accepts a dictionary of type [String:Any]
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!