adds background color to tabs

This commit is contained in:
Pfeil, Scott Robert 2020-05-22 18:36:21 -04:00
parent 428baa0012
commit 4b9ea6a799

View File

@ -153,10 +153,11 @@ import UIKit
override open func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
super.set(with: model, delegateObject, additionalData)
backgroundColor = tabsModel?.backgroundColor?.uiColor
self.delegateObject = delegateObject
self.additionalData = additionalData
self.selectedIndex = tabsModel?.selectedIndex ?? 0
self.bottomLine.backgroundColor = tabsModel?.selectedColor.uiColor
selectedIndex = tabsModel?.selectedIndex ?? 0
bottomLine.backgroundColor = tabsModel?.selectedColor.uiColor
reloadData()
}
}