Skip to content

Instantly share code, notes, and snippets.

@buechner
buechner / UIImageView+fixVectorTemplate.swift
Created Aug 2, 2016
Fixing a bug in XCode, where a vector image set as template can not be tinted in Interface Builder: http://openradar.appspot.com/18448072
View UIImageView+fixVectorTemplate.swift
import UIKit
// fixing Bug in XCode
// http://openradar.appspot.com/18448072
extension UIImageView {
override public func awakeFromNib() {
super.awakeFromNib()
self.tintColorDidChange()
}
}