Allows JSON to set wholeViewIsClickable.
This commit is contained in:
parent
a4bec1d956
commit
b21664288d
@ -205,6 +205,10 @@ public typealias ActionBlock = () -> ()
|
||||
}
|
||||
}
|
||||
|
||||
if let wholeViewIsClickable = json?.boolForKey("makeWholeViewClickable") {
|
||||
(label as? Label)?.makeWholeViewClickable = wholeViewIsClickable
|
||||
}
|
||||
|
||||
if let backgroundColorHex = json?.optionalStringForKey(KeyBackgroundColor), !backgroundColorHex.isEmpty {
|
||||
label.backgroundColor = UIColor.mfGet(forHex: backgroundColorHex)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user