Skip to content

Instantly share code, notes, and snippets.

@gali8
Last active September 23, 2019 12:46
Show Gist options
  • Save gali8/f4bbd5ad6421ea3c2be063dc50b04e9d to your computer and use it in GitHub Desktop.
Save gali8/f4bbd5ad6421ea3c2be063dc50b04e9d to your computer and use it in GitHub Desktop.
'NSInternalInconsistencyException', reason: 'Need an imageRef'- iOS13
//Need an imageRef error
let image = UIImage(named: "background") //works only if an image named "background" exists else crash!
let color = UIColor(named: "background") //always works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment