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.