From 40def6e19b22706962f0e52b80290d483f9766c0 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Thu, 9 Jan 2020 14:30:25 -0500 Subject: [PATCH] control default --- MVMCoreUI/BaseClasses/Control.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MVMCoreUI/BaseClasses/Control.swift b/MVMCoreUI/BaseClasses/Control.swift index e425a29b..a633f4e1 100644 --- a/MVMCoreUI/BaseClasses/Control.swift +++ b/MVMCoreUI/BaseClasses/Control.swift @@ -51,6 +51,9 @@ import UIKit public func setWithModel(_ model: MoleculeProtocol?, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [String : AnyHashable]?) { self.model = model + if let backgroundColor = model?.backgroundColor { + self.backgroundColor = backgroundColor.uiColor + } } //--------------------------------------------------