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

TabBarItem text color doesn't obey the tint color when selected #290

Closed jmhirsch closed 4 years ago

jmhirsch commented 4 years ago

Hello,

In implementing the animated tab bar, I'm facing difficulty getting the text color of the tabbaritem to match the rest of the UI. The originally selected tabbaritem will begin with the correct color (in this case systemIndigo), however upon selecting another tab, it reverts to the default systemBlue color. The button's color also does not fade to gray when a modal view controller is presented

Note the 'Media' tab bar item on the bottom left of the images below. The correct color should be systemIndigo when selected, and systemGray when deselected / in the background. In both cases, it is systemBlue

Additionally, it would be nice to be able to position the text label on the side of the icon on iPad like the original TabBarViewController does

IMG_0098

IMG_0097

igork-ramotion commented 4 years ago

@flynn-buc hey, please take a look at RAMItemAnimation it has @IBInspectable open var textSelectedColor: UIColor @IBInspectable open var iconSelectedColor: UIColor

To update unselected state you can use RAMAnimatedTabBarItem @IBInspectable open var textColor: UIColor @IBInspectable open var iconColor: UIColor

Hope this would help you 🤞🏻