If you can't see the image literal shortcut pop up, you can manually write the code for it and Xcode will replace that code with the required image once the code is complete.
For example: diceImageView1.image = #imageLiteral(resourceName: "DiceOne")
If you are writing the array of image literals, you can write the code for one image literal manually and then copy-paste the code and change the picture manually.
Example:
diceArray = [#imageLiteral(resourceName: "DiceOne") , #imageLiteral(resourceName: "DiceTwo"), ..... ]
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: