Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 849 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 849 Bytes

How to tint an UIImageView image

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.

Animation