FormButtonItemStyle

public struct FormButtonItemStyle : ViewStyle

Contains the styling customization options for a form button item.

  • The font used to display the text.

    Declaration

    Swift

    public var button: ButtonStyle
  • The background of the view.

    Declaration

    Swift

    public var backgroundColor: UIColor
  • Initializes the secondary button style.

    Declaration

    Swift

    public init(button: ButtonStyle)

    Parameters

    font

    The font of a title.

  • Initializes the button style.

    Declaration

    Swift

    public init(button: ButtonStyle, background: UIColor)
  • Get instance of FormButtonItemStyle styled as filled button with corner radius.

    Declaration

    Swift

    public static func main(font: UIFont, textColor: UIColor, mainColor: UIColor, cornerRadius: CGFloat) -> FormButtonItemStyle

    Parameters

    font

    The font of button’s title.

    textColor

    The color of button’s title.

    mainColor

    The filling color of a button..

    cornerRadius

    The corner radius of the button.

  • Get instance of FormButtonItemStyle styled as filled button with default corner radius.

    Declaration

    Swift

    public static func main(font: UIFont, textColor: UIColor, mainColor: UIColor) -> FormButtonItemStyle

    Parameters

    font

    The font of button’s title.

    textColor

    The color of button’s title.

    mainColor

    The filling color of a button..

  • Get instance of FormButtonItemStyle styled as filled button with corner radius.

    Declaration

    Swift

    public static func main(font: UIFont, textColor: UIColor, mainColor: UIColor, cornerRounding: CornerRounding) -> FormButtonItemStyle

    Parameters

    font

    The font of button’s title.

    textColor

    The color of button’s title.

    mainColor

    The filling color of a button..

    cornerRounding

    The corner style of the button.

  • Get instance of FormButtonItemStyle styled as plane button transparent background.

    Declaration

    Swift

    public static func secondary(font: UIFont, textColor: UIColor) -> FormButtonItemStyle

    Parameters

    font

    The font of button’s title.

    textColor

    The color of button’s title.