Change the color of selected tab bar icon in swift

20.3k views Asked by At

I found out how to change the color of the text of the tab bar item when it is selected, but I am wondering how to do the same for the icon. I can't seem to find the solution on SO for swift, and that works. My icon has uploaded correctly, and when deselected is gray, but when it is selected, it goes to the default blue color. I would like to change this to a certain red. Where do I do this, and how do I do it?

Thank you so much!

1

There are 1 answers

1
Kyle H On BEST ANSWER

Already answered here but in short, click on the tab bar item you wish to change and you can add a new runtime attribute in the Storyboard which will change the entire item (image & text) when selected.