UITextField incorrectly resizes it's font
Originator: | kpa | ||
Number: | rdar://37783463 | Date Originated: | 22-Feb-2018 01:49 PM |
Status: | Open | Resolved: | |
Product: | iOS + SDK | Product Version: | 11.2 |
Classification: | Serious Bug | Reproducible: | Always |
Summary: When a UITextField doesn't have required “equalTo” leading and trailing constraints it will prefer resizing it's font size before increasing it's bounds. Steps to Reproduce: Add a `UITextField` with `adjustsFontSizeToFitWidth = true` Constrain it to a leading or centerX anchor Type some text in the textfield Expected Results: The textfield to increase it's bounds Actual Results: The textfield reduces font size to the minimal allowed then increases it's bounds. Version: 11.2 Notes:
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!