ButtonConfiguration

public struct ButtonConfiguration

Undocumented

  • Button configuration initalizer

    Declaration

    Swift

    public init(backgroundColor: UIColor,
                borderColor: UIColor,
                titleColor: UIColor,
                shadowColor: UIColor,
                cornerRadius: CGFloat,
                borderWidth: CGFloat,
                shadowRadius: CGFloat,
                withBlurEffect: Bool)

    Parameters

    backgroundColor

    the button’s background color

    borderColor

    the button’s border color

    titleColor

    the button’s title color

    shadowColor

    the button’s color of the shadow

    cornerRadius

    the button’s corner radius

    borderWidth

    the button’s border width

    shadowRadius

    the button’s shadow radius

    withBlurEffect

    adds a blur effect on the button ignoring the background color and making it translucent