swift set uiimage color
extension UIImageView {
func setImageColor(color: UIColor) {
let templateImage = self.image?.withRenderingMode(.alwaysTemplate)
self.image = templateImage
self.tintColor = color
}
}
Also in Swift:
- swift apply changes after a word in string
- custom binding swiftui
- check when webview finish loading swift
- declare empty string in swift
- format decimal place swift
- swift how to sort array
- swift stirng to date
- Expression of type 'UIViewController?' is unused warning when pop view controller in swift 3.0
- fizbuzz in swift
- store bool value in nsuserdefaults swift
- loop through array swift
- swift update uilabel text button
- swift assign tuple to variables
- swift test if simulator
- swift zstack
- UI API called on a background thread
- swift find difference between two arrays
- swift VStack
- how to get index path cell collection view from ui longpress gesture swift
- how to swift pie chart quartzcore framework
- how to screen record swift stackoverflow
- uilabel center text programmatically swift
- register page
- play sound swift stack overflow