MutableButtonAppearance
@objc(YMAMutableButtonAppearance)
@objcMembers
public class MutableButtonAppearance : ButtonAppearance
Class with editable settings for the standard button appearance.
-
Settings for the button label.
Declaration
Swift
override public var textAppearance: LabelAppearance { get set } -
Label color when the button is clicked.
Declaration
Swift
override public var highlightedTextColor: UIColor { get set } -
The color of the button background in its normal state.
Declaration
Swift
override public var normalColor: UIColor { get set } -
The color of the button background when clicked.
Declaration
Swift
override public var highlightedColor: UIColor { get set } -
The color of the button border.
Declaration
Swift
override public var borderColor: UIColor { get set } -
The thickness of the button border.
Declaration
Swift
override public var borderWidth: CGFloat { get set } -
Corresponding immutable representation of current label appearance.
Declaration
Swift
public var buttonAppearance: ButtonAppearance { get } -
Undocumented
Declaration
Swift
public convenience init() -
Creates an object of the
MutableButtonAppearanceclass, i.e., a button with the specified appearance (label font, label color, border color, and other settings).Declaration
Swift
public required convenience init( textAppearance: LabelAppearance, normalColor: UIColor, highlightedColor: UIColor, borderColor: UIColor, borderWidth: CGFloat )Parameters
textAppearanceSettings for the button label.
normalColorThe color of the button background in its normal state.
highlightedColorThe color of the button background when clicked.
borderColorThe color of the button border.
borderWidthThe thickness of the button border.
Return Value
Configured button appearance.
-
Creates an object of the
MutableButtonAppearanceclass, i.e., a button with the specified appearance (label font, label color, border color, and other settings).Declaration
Swift
public required convenience init( textAppearance: LabelAppearance, highlightedTextColor: UIColor, normalColor: UIColor, highlightedColor: UIColor, borderColor: UIColor, borderWidth: CGFloat )Parameters
textAppearanceSettings for the button label.
highlightedTextColorLabel color when the button is clicked.
normalColorThe color of the button background in its normal state.
highlightedColorThe color of the button background when clicked.
borderColorThe color of the button border.
borderWidthThe thickness of the button border.
Return Value
Configured button appearance.
-
Undocumented
Declaration
Swift
override public func copy(with zone: NSZone? = nil) -> Any