UIButton iconColor is ignored when title is present
Mochlate opened this issue · comments
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.
When I ran the project, I got this:
I think you added the button from storyboard and the color is not changed there. Is this a case with your issue?