ButtonConfig

public class ButtonConfig: ElementConfig

Holds button configuration values.

  • Button height. Default value is 40.

    Declaration

    Swift

    public let height: CGFloat
  • Button image.

    Declaration

    Swift

    public let image: UIImage?
  • Button tint color. Default value is white.

    Declaration

    Swift

    public let tintColor: UIColor
  • Initializes using default values.

    Declaration

    Swift

    public convenience init()
  • Initializes using a dictionary.

    • Key for height is "height" and its value should be a number.
    • Key for image is "image" and its value should be an image asset name.
    • Key for tintColor is "tintColor" and its value should be a color hex string.

    • parameters:

      • dictionary: Button configuration dictionary.

    Declaration

    Swift

    public override init(dictionary: [String: AnyObject])

    Parameters

    dictionary

    Button configuration dictionary.