chore: condition check updated

This commit is contained in:
Vasil Trifonov
2020-02-26 18:34:08 +02:00
parent b5b31bdb26
commit f0b61976b1

View File

@@ -732,7 +732,7 @@ function applyStatesToItem(item: UITabBarItem, states: TabStates, tabBar: UITabB
// to fix the above issue we are applying the selected fix only for the case, when there is no background set
// in that case we have the following known issue:
// we will set the color to all unselected items, so you won't be able to set different colors for the different not selected items
if ((!tabBar.barTintColor) && (states.normalState[UITextAttributeTextColor] && (majorVersion > 9))) {
if (!tabBar.barTintColor && states.normalState[UITextAttributeTextColor] && (majorVersion > 9)) {
tabBar.unselectedItemTintColor = states.normalState[UITextAttributeTextColor];
}
}