How to set number of lines in UIButton using UIButton.Configuration?

Viewed 96

Before iOS 15 and new UIButton.Configuration setting number of lines of title label was as easy as

myButton.titleLabel?.numberOfLines = 1

I don't see any property in the UIButton.Configuration struct that would allow me to achieve this and the code above doesn't work when using configurations.

0 Answers
Related