There is a setting for UILabel in storyboard that allows setting auto-shrink configurations, as shown below:
But I am unable to find the same for UIButton's textlabel. I am aware that I can set this programmatically but curious to know if there's a way to enable this setting for UIButton in Storyboard.
You can use User Defined Runtime Attributes to set this flag using the storyboard.
Set the following key path:
titleLabel.adjustsFontSizeToFitWidth to true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With