If you are using Button.Configuration, then to limit the number of rows to 1 you need to do the following:
var conf = UIButton.Configuration.plain()
conf.titleLineBreakMode = .byTruncatingTail
let button = UIButton(configuration: conf)
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: