Skip to content

Instantly share code, notes, and snippets.

@buechner
Created August 2, 2016 10:01
Show Gist options
  • Save buechner/3b97000a6570a2bfbc99c005cb010bac to your computer and use it in GitHub Desktop.
Save buechner/3b97000a6570a2bfbc99c005cb010bac to your computer and use it in GitHub Desktop.
Fixing a bug in XCode, where a vector image set as template can not be tinted in Interface Builder: http://openradar.appspot.com/18448072
import UIKit
// fixing Bug in XCode
// http://openradar.appspot.com/18448072
extension UIImageView {
override public func awakeFromNib() {
super.awakeFromNib()
self.tintColorDidChange()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment