Ramotion / animated-tab-bar

:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
https://www.ramotion.com/animated-tab-bar-ios-app-development-ui-library/
MIT License
11.13k stars 1.33k forks source link

How to set UITabBarItem color #72

Closed googlb closed 8 years ago

googlb commented 8 years ago

I Set the class of the UITabBarController to RAMAnimatedTabBarController in your Storyboard How to set UITabBarItem color I try this in AppDelegate let mainColor = UIColor(rgba: "#45BDCF") UITabBar.appearance().tintColor = mainColor UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName:mainColor], forState:.Normal) it dosen't work.

0ber commented 8 years ago

in 1.0.6 version, added iconColor property

you need use textColor, iconColor property in RAMAnimatedTabBarItem