UITextfield doesn't autoshrink text beyond a fixed font size when adjustsFontSizeToFitWidth is set

Originator:acesomeone
Number:rdar://21871405 Date Originated:17-Jul-2015 11:28 AM
Status:Open Resolved:No
Product:iOS SDK Product Version:iOS 8.3 (12F69) and iOS 8.4 (12H143)
Classification:Other bug Reproducible:Yes
 
Summary:
When the 'adjustsFontSizeToFitWidth' property of UITextField is set to YES, and the 'minimumFontSize' property is set to anything smaller than 13 or 14 points, the textfield stops autoshrinking at 13-14 points. Even when a small value like 6 is defined, the field doesn't shrink down to it, but rather stops shrinking at the aforementioned undocumented limit.

Steps to Reproduce:
1. Create a UITextField instance
2. Set property 'adjustsFontSizeToFitWidth' to YES
3. Set property 'minimumFontSize' to a value lower than 13 or 14 (undocumented limit?)

Expected Results:
I expect UITextField instances to autoshrink down to any value defined by the 'minimumFontSize' property

Actual Results:
Autoshrinking stops at a seemingly undocumented limit (13 or 14, deduced visually)

Version:
iOS 8.3 (12F69) and iOS 8.4 (12H143)

Configuration:
iPad 4 & iPad Mini 2

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!