Commit 20768a11 by M. Porooshani

refactored color assignment

parent 1595584f
......@@ -295,13 +295,12 @@ fileprivate extension TabBar {
/// Prepares the tabItems.
func prepareTabItems() {
shouldNotAnimateLineView = true
let normalColor = tabItemsNormalTitleColor ?? Color.blue.base
let selectedColor = tabItemsSelectedTitleColor ?? Color.blue.base
for v in tabItems {
v.grid.columns = 0
v.contentEdgeInsets = .zero
let normalColor = tabItemsNormalTitleColor ?? Color.blue.base
if Color.blue.base == v.titleColor { v.titleColor = normalColor }
let selectedColor = tabItemsSelectedTitleColor ?? Color.blue.base
if nil == v.selectedTitleColor { v.selectedTitleColor = selectedColor }
prepareLineAnimationHandler(tabItem: v)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment