Answers for "swift 5 change tint color of image"

0

swift set uiimage color

extension UIImageView {
  func setImageColor(color: UIColor) {
    let templateImage = self.image?.withRenderingMode(.alwaysTemplate)
    self.image = templateImage
    self.tintColor = color
  }
}
Posted by: Guest on January-05-2021

Code answers related to "swift 5 change tint color of image"

Code answers related to "Swift"

Browse Popular Code Answers by Language