How can I change item or image color in tabBar swift?

Viewed 800

I want to change item color in tabBar, not text the items not selected etc Longtime aim searching about it, I didn't find. I just found this code, it does not change item or image color, just text. The default color is grey, I want to change it.

This is the code I found:

UITabBar.appearance().barTintColor = UIColor(redRGB: 93, greenRGB: 175, blueRGB: 228)
UITabBar.appearance().tintColor = UIColor .redColor()
UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName: UIColor.whiteColor()], forState:.Normal)
1 Answers
Related