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.12k stars 1.33k forks source link

Selected/unselected colors not changing #253

Closed jonathansolorzn closed 5 years ago

jonathansolorzn commented 5 years ago

I'm trying to set unselectedItemTintColor and item iconColor but they're not working, the item color doesn't change when selected, just the text, I set the selected and unselected state images but it doesn't work

Jigneshiosdeveloper commented 5 years ago

I also trying to set "The color of the UITabBarItem text" -> open var textColor: UIColor = UIColor.black(RAMAnimatedTabBarController.swift). i want to change another color instead of black. And also want to selected color from blue(default color) to any another color. i tried but it doesn't work

0ber commented 5 years ago

use this https://github.com/Ramotion/animated-tab-bar/blob/master/RAMAnimatedTabBarController/RAMItemAnimationProtocol.swift#L56-L59 properties to change selected color for text and icon.

image

jonathansolorzn commented 5 years ago

I create my tab bar by code, how should I do that in code?

0ber commented 5 years ago

Look for RAMItemAnimationProtocol https://github.com/Ramotion/animated-tab-bar/blob/master/RAMAnimatedTabBarController/RAMItemAnimationProtocol.swift#L55-L59