Open menicor opened 7 years ago
textColor
self.tabBar.tintColor = UIColor.red
backgroundColor
self.tabBar.mixedBarTintColor = MixedColor(normal: UIColor(CNodeColor.backgroundColor), night: UIColor(CNodeColor.backgroundColor_dark))
` class YourTabBarClass: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
tabBar.mixedBarTintColor = MixedColor(normal: 0xfbfbfb, night: 0x000000)
tabBar.mixedTintColor = MixedColor(normal: 0x0AAADD, night: 0xffffff)
}
} `
tabBarItem.setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.black ,NSFontAttributeName:UIFont.systemFont(ofSize: 10)] , for: UIControlState())