BarConfig
public class BarConfig
Holds bar configuration values.
-
Bar background color. If there is more than one value, background will be a gradient.
Declaration
Swift
public let backgroundColor: [UIColor]
-
Bar height.
Declaration
Swift
public let height: CGFloat
-
Height of the top edge border view.
Declaration
Swift
public let topBorderHeight: CGFloat
-
Background color of the top edge border view.
Declaration
Swift
public let topBorderColor: UIColor
-
Height of the bottom edge border view.
Declaration
Swift
public let bottomBorderHeight: CGFloat
-
Background color of the bottom edge border view.
Declaration
Swift
public let bottomBorderColor: UIColor
-
An array of configuration objects for the elements of the bar.
Declaration
Swift
public let elements: [ElementConfig]
-
Initializes using default values.
Declaration
Swift
public convenience init()
-
Initializes using a dictionary.
- Key for
backgroundColor
is"backgroundColor"
colors and its value should either be a color hex string, or an array of color hex strings for a gradient background. - Key for
height
is"height"
and its value should be a number. - Key for
topBorderHeight
is"topBorderHeight"
and its value should be a number. - Key for
topBorderColor
is"topBorderColor"
and its value should be a color hex string. - Key for
bottomBorderHeight is
bottomBorderHeight
` and its value should be a number. - Key for
bottomBorderColor
is"bottomBorderColor"
and its value should be a color hex string. Key for
elements
is"elements"
and its value should be an array of element configuration dictionaries.parameters:
- dictionary: Bar configuration dictionary.
Declaration
Swift
public init(dictionary: [String: AnyObject])
Parameters
dictionary
Bar configuration dictionary.
- Key for