Follow up to this thread, does adjustsFontSizeToFitWidth also follow the same thinking? Is it assumed that if we use a font style, this doesn't need to be set in a UIButton if we're using UIButtonConfiguration?
UIButtonConfiguration equivalent to titleLabel.adjustsFontSizeToFitWidth
adjustsFontSizeToFitWidth is not available within the logic of how UIButtonConfiguration based buttons work. In general we would either recommend adapting your UI to support multi-line buttons, using a single line button (by setting the [sub]titlelineBreakMode to a non-wrapping mode) or setting a maximumContentSizeCategory to restrict how large the text size of your button can grow.
If I do the following:
buttonConf.titleLineBreakMode = NSLineBreakByClipping;
...
button.titleLabel.adjustsFontSizeToFitWidth = YES;
adjustsFontSizeToFitWidth seems to work. Is this the intended behaviour? Or could this break in future releases?
Thank you.