Skip to content

benbahrenburg/ImageViewTintImage-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example how to tint a UIImageView UIImage

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages