Post

Replies

Boosts

Views

Activity

Reply to Xcode 12.4: Image Literal returns error message
I am new at coding and new to SWIFT, and I have started the Udemy  course by Dr.Angela Yu. The course is grate but it is in Xcode 13, and I am using Xcode 14, and it is different. After a few chapters I found my self in trouble with Image Literals. didn't see the small icon in the displayed code, I even had to write the "name_of_the_file" . After looking and looking and trying, the only easy way to do it was this. code: # imageLiteral() ---->write the pound key# and write imageLiteral and then the brackets() and then double click in the little image and the display to select an image on the assets folder will appear. !!!! for some reason the displayed suggestions when starting to type imageliteral, does not show this option!!!!! so: 1)Type : #imageLiteral then type : () A little icon will appear, double click it and select the image from the assets folder.
Nov ’22