skip to Main Content

Ios swift – How to underline title with UIButton.Configuration?

This is my convenience init for UIButton: convenience init(underlinedTitle: String, font: UIFont, color: UIColor) { var configuration = UIButton.Configuration.plain() configuration.title = underlinedTitle configuration.titleTextAttributesTransformer = UIConfigurationTextAttributesTransformer { incoming in var outgoing = incoming outgoing.font = font outgoing.foregroundColor = color outgoing.underlineStyle =…

VIEW QUESTION
Back To Top
Search