Skip to content
This repository has been archived by the owner on Jan 5, 2020. It is now read-only.

How to modify tabbarItem text color #21

Open
menicor opened this issue Jul 20, 2017 · 2 comments
Open

How to modify tabbarItem text color #21

menicor opened this issue Jul 20, 2017 · 2 comments

Comments

@menicor
Copy link

menicor commented Jul 20, 2017

tabBarItem.setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.black ,NSFontAttributeName:UIFont.systemFont(ofSize: 10)] , for: UIControlState())

@atjiu
Copy link

atjiu commented Nov 7, 2018

textColor

self.tabBar.tintColor = UIColor.red

backgroundColor

self.tabBar.mixedBarTintColor = MixedColor(normal: UIColor(CNodeColor.backgroundColor), night: UIColor(CNodeColor.backgroundColor_dark))

@Lakr233
Copy link

Lakr233 commented May 6, 2019

`
class YourTabBarClass: UITabBarController {

override func viewDidLoad() {
    super.viewDidLoad()
    
    tabBar.mixedBarTintColor = MixedColor(normal: 0xfbfbfb, night: 0x000000)
    tabBar.mixedTintColor = MixedColor(normal: 0x0AAADD, night: 0xffffff)

}

}
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants