From b21664288d3e4da1d8b94fdb979bb132563d198c Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Mon, 19 Aug 2019 13:13:27 -0400 Subject: [PATCH] Allows JSON to set wholeViewIsClickable. --- MVMCoreUI/Atoms/Views/Label.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index c46c16e8..6054f644 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -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) }