UIButton does not automatically adjust image size based on content type
Originator: | hotngui | ||
Number: | rdar://FB8950682 | Date Originated: | 12/23/2020 |
Status: | Open | Resolved: | |
Product: | iOS | Product Version: | 14.0 |
Classification: | Bug | Reproducible: | Always |
I have a UIButton that contains text and a symbol image. I set the adjustsFontForContentSizeCategory property on the titleLabel which allows it to automatically adjust as the user changes the font size. However, there is no equivalent for the button's imageView. I did try the property, adjustsImageSizeForAccessibilityContentSizeCategory, which is similar but that has no effect. If you look at the attached video you can see that if I change the font size and restart the app it does indeed correctly size the image as expected. So the bug is that it does not have the equivalent of "adjustsImageSizeForAccessibilityContentSizeCategory" property on UILabel. This makes for really bad user experience.
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!