ToggleButtonConfig
public class ToggleButtonConfig: ElementConfig
Holds toggle button configuration values.
-
Button height. Default value is 40.
Declaration
Swift
public let height: CGFloat
-
Button image when it’s not toggled.
Declaration
Swift
public let image: UIImage?
-
Button tint color when it’s not toggled. Default value is white.
Declaration
Swift
public let tintColor: UIColor
-
Button image when it’s toggled.
Declaration
Swift
public let toggledImage: UIImage?
-
Button tint color when it’s toggled. Default value is white.
Declaration
Swift
public let toggledTintColor: 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. - Key for
toggledImage
is"toggledImage"
and its value should be an image asset name. Key for
toggledTintColor
is"toggledTintColor"
and its value should be a color hex string.parameters:
- dictionary: Toggle button configuration dictionary.
Declaration
Swift
public override init(dictionary: [String: AnyObject])
Parameters
dictionary
Toggle button configuration dictionary.
- Key for