UIPickerView does not respect NSFontAttributeName

Originator:tommaso.piazza
Number:rdar://31086762 Date Originated:16-Mar-2017
Status:Open Resolved:
Product:iOS + SDK Product Version:10.1
Classification: Reproducible:Always
 
Area:
UIKit

Summary:
UIPickerView ignores the NSFontAttributeName in attributed strings returned by the delegate's implementation of `pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString?`

Steps to Reproduce:
1. Create a UIPickerView
2. Set the delegate
3. Implement `pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString?` in the delegate
4. return an NSAttributedString with NSFontAttributeName set
5.See that the font size is not respected

Expected Results:
The font size is respected

Actual Results:
The font size is not respected

Version:
iOS 10.1

Notes:


Configuration:
Any iOS Device

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!