UIButton
extension UIButton
-
Replace the title of a button while keeping it’s attribute depending on its state.
Declaration
Swift
public func setAttributedTitleString(_ title: String, for state: UIControl.State)Parameters
titleString to display in the button.
stateThe state of the button.
-
Declaration
Swift
public func setTextAppearance(_ textAppearance: TextAppearance, with title: String, for state: UIControl.State) -
Undocumented
Declaration
Swift
public func setTextStyle(_ textStyle: ThemeManager.TextStyle, with title: String, for state: UIControl.State)
View on GitHub
UIButton Extension Reference