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
For swift 3.2 and 4
extension UIImageView{ func changePngColorTo(color: UIColor){ guard let image = self.image else {return} self.image = image.withRenderingMode(.alwaysTemplate) self.tintColor = color } }
Use :
self.yourImageView.changePngColorTo(color: .red)