Ios swift – Change the title of a configuration-based button without losing title attributes
Suppose I have a configuration-based button, with an attributed title: let button = UIButton(configuration: .plain()) let font = UIFont(name: "Georgia", size: 16) button.configuration?.attributedTitle = AttributedString( "Hello", attributes: AttributeContainer.font(font!) ) If I later come along and set the configuration's title to…