LabelConfig
public class LabelConfig: ElementConfig
Holds label configuration values.
-
Initial text for the label.
Declaration
Swift
public let text: String?
-
Label font. Default value is system font of size 14 (16 if
identifier
is"title"
).Declaration
Swift
public let font: UIFont
-
Color of the text. Default value is white.
Declaration
Swift
public let textColor: UIColor
-
Initializes using default values.
Declaration
Swift
public convenience init()
-
Initializes using a dictionary.
- Key for
text
is"text"
and its value should be a string. - Keys for
font
are"font"
and"size"
; value of"font"
should be a font name, and"size"
should be a number. Key for
textColor
is"textColor"
and its value should be a color hex string.parameters:
- dictionary: Label configuration dictionary.
Declaration
Swift
public override init(dictionary: [String: AnyObject])
Parameters
dictionary
Label configuration dictionary.
- Key for