UIFontTextStyle* should be an enum

Originator:samuel.watts
Number:rdar://24607974 Date Originated:11/02/2016
Status:Open Resolved:
Product:iOS SDK Product Version:9.2
Classification:UI/Usability Reproducible:Always
 
Summary:
currently there are Strings defined for each UIFontTextStyle (UIFontTextStyleHeadline, UIFontTextStyleSubheadline etc)

Anyone handling options for text style must manually check that all options are handled, and doesn't get any build errors when a new unhandled value is added (e.g. UIFontTextStyleTitle1 in iOS 9)

Steps to Reproduce:
View docs for UIFontTextStyle values

Expected Results:
text style should be an enum backed by a String 

Actual Results:
text styles are String constants 

Version:
iOS 9.2

Notes:


Configuration:
iOS 9.2

Attachments:

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!