Merge branch 'bugfix/thread_issue' into 'develop'

move backgroud color set to handleNewData

See merge request BPHV_MIPS/mvm_core_ui!429
This commit is contained in:
Pfeil, Scott Robert 2020-05-08 17:36:14 -04:00
commit dfd32f1408
2 changed files with 4 additions and 3 deletions

View File

@ -22,8 +22,5 @@ public extension TemplateProtocol where Self: ViewController {
let templateModel = try decoder.decode(TemplateModel.self, from: data)
self.templateModel = templateModel
self.pageModel = templateModel as? MVMControllerModelProtocol
if let backgroundColor = templateModel.backgroundColor {
view.backgroundColor = backgroundColor.uiColor
}
}
}

View File

@ -171,6 +171,10 @@ import UIKit
let rules = pageModel?.formRules
formValidator = FormValidator(rules)
}
if let backgroundColor = pageModel?.backgroundColor {
view.backgroundColor = backgroundColor.uiColor
}
}
// MARK: - Navigation Item (Move to model base)