I have a progress view and a UIView, setup with these values:
healthBar.trackTintColor = UIColor(red: 59/255, green: 153/255, blue: 252/255, alpha: 1.0)
link.backgroundColor = UIColor(red: 59/255, green: 153/255, blue: 252/255, alpha: 1.0)
Assigning the same Color (RGB) as a tint does not gives the same output for original color, thats because:
In color theory, a tint is the mixture of a color with white, which increases lightness, and a shade is the mixture of a color with black, which reduces lightness.
You can find the full Wikipedia resource at this link.
How Can I solve it?
However, you CAN generate the appropriate matching for color and its tintColor, you might want to check these answers.
Hope this helped.