UITextField.typingAttributes should be imported as [NSAttributedStringKey: Any] in Swift 4
Originator: | marcelofabri.mf | ||
Number: | rdar://34402659 | Date Originated: | 13-set-2017 12:09 AM |
Status: | Open | Resolved: | |
Product: | iOS + SDK | Product Version: | 11 |
Classification: | UI/Usability | Reproducible: | Always |
Summary: UITextField.typingAttributes should be imported as [NSAttributedStringKey: Any] in Swift 4 to match other APIs. Steps to Reproduce: 1. Open the documentation for UITextField.typingAttributes Expected Results: The property type is [NSAttributedStringKey: Any] Actual Results: The property type is [String: Any] and I’m miserable Version: 11 Notes: You can use the new Dictionary.init(uniqueKeysWithValues:) to convert the types as showed in https://stackoverflow.com/questions/44407840/how-to-convert-string-any-to-nsattributedstringkey-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!