Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincent-pradeilles/aa04546d2012e7fa79c1c325918afebb to your computer and use it in GitHub Desktop.
Save vincent-pradeilles/aa04546d2012e7fa79c1c325918afebb to your computer and use it in GitHub Desktop.
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