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
title
String to display in the button.
state
The 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)