0

I have an icon with black lines. The TabBarController intelligently outlines the black as a color (default blue, but I changed it to red)

UITabBar.appearance().tintColor  = UIColor.redColor()

How can I do this in a UIImageView? When I drag the image out and then change the tintColor, nothing happens and it stays black.

enter image description here

TIMEX
  • 259,804
  • 351
  • 777
  • 1,080

1 Answers1

1

If it is an image that you have inserted into your image assets, then make sure that the image is set as a template. Select the image, then where the attribute inspector is, make sure that it is set to "template"

on the right

Paulo
  • 602
  • 1
  • 8
  • 20