This project demonstrates how to add a tint color to an UIImageView image. In our example we adjust the tint color on a star through the use of two different techniques.
- Inline code - shown here
view.image = view.image!.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate)
view.tintColor = UIColor.blueColor()
- As an extension method - shown here
view.tintImageColor(UIColor.blueColor())
Below is the example project in action.