I want not to change the backgroundColor of an UIImage,
but rather to change the color of the whole image.
Because I have got standard forms which I can move fr
Swift + Interface builder (storyboard)
If you added the UIImageView in the interface builder:
myIcon.image = myIcon.image!.withRenderingMode(UIImageRenderingMode.alwaysTemplate)
myIcon.tintColor = UIColor.red // your color
where myIcon
is an outlet from your storyboard, ex: @IBOutlet weak var myIcon: UIImageView!