Answers for "uicolor swift"

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

swift set uicolor

let swiftColor = UIColor(red: 1, green: 165/255, blue: 0, alpha: 1)
Posted by: Guest on June-08-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language