ranesr / SwiftIcons

🎢Swift Library for Font Icons - ★ this library

Home Page:https://ranesr.github.io/SwiftIcons/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIButton iconColor is ignored when title is present

Mochlate opened this issue · comments

commented

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

@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?