Last active
September 23, 2019 12:46
-
-
Save gali8/f4bbd5ad6421ea3c2be063dc50b04e9d to your computer and use it in GitHub Desktop.
'NSInternalInconsistencyException', reason: 'Need an imageRef'- iOS13
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
//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