infernouk infernouk - 16 days ago 6
Swift Question

Setting each tab on TabBarController a different colour when selected?

I have a tab bar and want to set tints that are indipendent based on selected tab, I know I can tint them so they all change to 1 new color, however I havent been able to get them to each take on their own colour when selected. Is there a way to do this?

currently have this, where the tint is just white, i want to tint each one indipendently

mybar

Answer

Select your Tabbar item and in attribute inspector set both Selected Image and Image for bar item check below Image for reference.

enter image description here