Vladimir Japundza
Vladimir Japundza

Reputation: 3

tint color is changing color of image in navigation bar swift 3

I put image instead of bar button item in navigation bar, and tint color is changing image color. I tried to put default tint color to be no color, but xcode is ignoring me. Also tried to make it transparent, but then whole image is transparent. Any ideas what should i do?

Upvotes: 0

Views: 556

Answers (1)

Tobias
Tobias

Reputation: 4397

I believe you'll need to change the rendering mode of your UIImage that you use. UIImage has a method imageWithRenderingMode. You can feed that UIImageRenderingModeAlwaysOriginal to get an image that doesn't change based on tint color.

This is from memory and I'm not at a computer to try it out.

Upvotes: 2

Related Questions