Xcode 12.4: Image Literal returns error message

I have tried to use the Image Literal on Xcode 12.4, and entered the following code:

Code Block
diceImageView1.imageView?.image = imageLiteral(resourceName: "DiceSix")


but it returns an error message which says:
Code Block
Value of type 'UIImageView' has no member 'imageView'

This error message prevents me from completing the build.

Any suggestions on how to handle this error?

Glad I can actually add something substantive to the conversation instead of just sneaking in for the answer.

Instead of what was originally was suggested in my version (Version 14.1) it is no more. Simply type the first part of her instructions but then go to the Library'+' in Xcode then click the 'Show the Media Library ' button (looks like a picture) and when you do that on the left your workspace image choices will show. Let me know if this helps!

/Users/eden/Desktop/Screen Shot 2022-12-13 at 4.44.19 PM.png/ /Users/eden/Desktop/Screen Shot 2022-12-13 at 4.44.05 PM.png

Xcode 12.4: Image Literal returns error message
 
 
Q