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

UIButton iconColor is ignored when title is present #26

Open
Mochlate opened this issue Feb 22, 2018 · 1 comment
Open

UIButton iconColor is ignored when title is present #26

Mochlate opened this issue Feb 22, 2018 · 1 comment
Assignees

Comments

@Mochlate
Copy link

I am using the following code alter the color of the text as well as the icon:

trendingTabButton.setIcon(icon: .emoji(.fire), iconColor: .red, title: "Title", titleColor: .yellow, backgroundColor: UIColor.clear, borderSize: 0, borderColor: UIColor.clear, forState: .normal)

But when I run this the title is red yet the icon is the default blue still

@ranesr ranesr self-assigned this Apr 4, 2018
@ranesr
Copy link
Owner

ranesr commented Apr 4, 2018

@Mochlate I used the code that you mentioned above.
screen shot 2018-04-03 at 10 31 54 pm

When I ran the project, I got this:
screen shot 2018-04-03 at 10 32 10 pm

I think you added the button from storyboard and the color is not changed there. Is this a case with your issue?

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

No branches or pull requests

2 participants