Answers for "change image tint color swiftui"

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
0

change image tint color swiftui

Image("ImageName")
   .renderingMode(.template)
   .foregroundColor(.white)
Posted by: Guest on April-25-2022

Code answers related to "change image tint color swiftui"

Code answers related to "Swift"

Browse Popular Code Answers by Language