Is it possible to modify a UIImage\'s renderingMode from a storyboard or xib editor?
The goal is to apply tintColor to the par
As Rudolf also mentioned above, I would define a simple class, like this:
import UIKit
@IBDesignable class TintImage: UIImageView{
override func layoutSubviews() {
super.layoutSubviews()
image = image?.withRenderingMode(.alwaysTemplate)
}
}
After this definition, just add an Image View to storyboard and select its custom class as TintImage. This will activate the "Tint" selection in the storyboard.