Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tintColor of selected item #206

Closed
veer9002 opened this issue Jan 5, 2018 · 8 comments
Closed

tintColor of selected item #206

veer9002 opened this issue Jan 5, 2018 · 8 comments
Labels

Comments

@veer9002
Copy link

veer9002 commented Jan 5, 2018

First a fall, I want to say thank you very much for creating such a beautiful library. I love your lib, but I want to change the selectedItemImageColor and it's text color. I am able to change the tabbar item's text and icon color but not find any solution to change the default blue color for selectedItem. I want to change the color of selectedItemText and icon color. I tried Image tint from tab bar (storyboard) but still not changing the selectedItem color. When I change the class of tabbar controller to its default class (UITabbarController). It allow me to change the the selected item color.

Thanks.

@veer9002 veer9002 changed the title tintColor of selected itemS? tintColor of selected item Jan 5, 2018
@PiotrPawlus
Copy link

up

@furkankadioglu
Copy link

up!

@0ber
Copy link
Contributor

0ber commented Jan 31, 2018

You can change tint color in RAMItemAnimation https://github.com/Ramotion/animated-tab-bar/blob/master/RAMAnimatedTabBarController/RAMItemAnimationProtocol.swift#L52-L59

tint-color

@0ber 0ber added the question label Jan 31, 2018
@aserdah
Copy link

aserdah commented Mar 24, 2018

thank @ober01 ober01 for your answer

@Angelzzz
Copy link

Angelzzz commented Oct 4, 2018

Anyone can you help me to set unselected item color for RAMAnimatedTabBarController

@amit2908
Copy link

amit2908 commented Apr 2, 2019

I am not able to change even the unselected item color to default color.

@0ber 0ber closed this as completed Apr 10, 2019
@marcelosalloum
Copy link

I've created the following convenience init method, I hope it helps you guys

extension RAMAnimatedTabBarItem {
    convenience init(title: String, image: UIImage?, tag: Int, animation: RAMItemAnimation, selectedColor: UIColor, unselectedColor: UIColor) {
        self.init(title: title, image: image, tag: 0)
        animation.iconSelectedColor = selectedColor
        animation.textSelectedColor = selectedColor
        self.animation = animation
        self.textColor = unselectedColor
        self.iconColor = unselectedColor
    }
}

@ShenYj
Copy link

ShenYj commented Oct 9, 2020

it's worked!

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

No branches or pull requests

9 participants