0

I'm using custom colors to display in my app,

I need to use three colors:

  1. Background - some kind of white
  2. Unselected icon - some kind of black
  3. 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]];

enter image description here

Brian
  • 14,610
  • 7
  • 35
  • 43
DanielZiv
  • 107
  • 8

0 Answers0