Allows JSON to set wholeViewIsClickable.

This commit is contained in:
Kevin G Christiano 2019-08-19 13:13:27 -04:00
parent a4bec1d956
commit b21664288d

View File

@ -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)
}