I'm using custom colors to display in my app,
I need to use three colors:
- Background - some kind of white
- Unselected icon - some kind of black
- Selected icon - purple
Unfortunately, somehow, when I select an Icon and then select another icon, the previous one goes back to the system colouring (circled in red in the attached image).
As part of the colouring I wrote the following code:
//uitabbar background
[[UITabBar appearance] setTintColor:[UIColor Primary]];
// selected icon tint color
[[UITabBar appearance] setBarTintColor:[UIColor Scondary]];
// unselected icon tint color
[[UIView appearanceWhenContainedIn:[UITabBar class], nil] setTintColor:[UIColor Base]];