Hi, I found this from Udemy Lesson Q&A from a user name LEE. This solution works for those of us who just starting to learn Swift. Thank you to LEE and would like his permission to share his answer below. Thanks again Lee.
Rick
Hi @Oleksandr,
I had the same issue with Xcode 13 also as it wasn't coming up in the dictionary suggestions when typing 'image literal'.
I've found that if you type the following then it will work and present you with the image icon and let you select the image as Angela has shown:
diceImageView1.image = #imageLiteral(
As soon as you type the trailing '(' then it will change to an image icon and let you select the DiceSix image.
Hope that helps!
Cheers,
Lee
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: