ButtonStyle
public struct ButtonStyle : ViewStyle, Equatable
Contains the styling customization options for any buttons.
-
The title style.
Declaration
Swift
public var title: TextStyle
-
The corners style of the button.
Declaration
Swift
public var cornerRounding: CornerRounding
-
The color of the Button’s border.
Declaration
Swift
public var borderColor: UIColor?
-
The width of the Button’s border.
Declaration
Swift
public var borderWidth: CGFloat
-
Initializes the button style.
Declaration
Swift
public init(title: TextStyle)
Parameters
title
The title style.
-
Initializes the button style.
Declaration
Swift
public init(title: TextStyle, cornerRadius: CGFloat)
Parameters
title
The title style.
cornerRadius
The corner radius of the button.
-
Initializes the button style.
Declaration
Swift
public init(title: TextStyle, cornerRounding: CornerRounding)
Parameters
title
The title style.
cornerRounding
The corner radius of the button style.
-
Initializes the button style.
Declaration
Swift
public init(title: TextStyle, cornerRadius: CGFloat, background: UIColor)
Parameters
title
The button title text style.
cornerRadius
The button corner radius.
background
Color to fill button’s background.
-
Initializes the button style.
Declaration
Swift
public init(title: TextStyle, cornerRounding: CornerRounding, background: UIColor)
Parameters
title
The button title text style.
cornerRounding
The button corner radius style.
background
Color to fill button’s background.