When I select first item in tab bar, the selected tint colour doesn't change, but when I tap second time the same item, it works then. That only happen on the first tab bar item and it looks like tab bar is refreshing. Tapping every other item in tab bar works as expected and doesn't have that problem. This only happens on iOS 13.
I tried using UITabBarAppearance()
, but it's the same.
Asked
Active
Viewed 289 times
0

Valentina Konatar
- 277
- 1
- 9
-
Did u checked this https://stackoverflow.com/questions/56839374/uitabbaritem-icon-not-colored-correctly-for-ios-13-when-a-bar-tint-color-is-spec – Adarsh G J Dec 27 '19 at 10:08
-
Yes, I did, It's not working. @AdarshGJ – Valentina Konatar Dec 27 '19 at 10:22
1 Answers
1
add your code in DispatchQueue and then try ...
DispatchQueue.main.async {
// your code to change colour
tabBarController.tabBar.barTintColor = [UIColor blackColor]
}

Shivam Parmar
- 1,520
- 11
- 27