Created
August 9, 2017 19:11
-
-
Save vincent-pradeilles/aa04546d2012e7fa79c1c325918afebb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func OverridableImage(named name: String) -> UIImage? { | |
if let overridenImage = UIImage(named: name) { | |
return overridenImage | |
} else { | |
return UIImage(named: name, in: Bundle.whiteLabelBundle(), compatibleWith: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment