according to this post for now, Is apple will also reject this code?
and how to implement what apple will approve?
@interface UITabBar (ColorExtensi
To set selected color just set:
let tabBarAppearace = UITabBar.appearance()
tabBarAppearace.tintColor = UIColor.nowYouBlue
Above will work for all iOS version currently supported, but to change unselected color:
if #available(iOS 10.0, *) {
tabBarAppearace.unselectedItemTintColor = UIColor.red
} else {
// Fallback on earlier versions
}
Above code will look like this on iOS 10.