Post

Replies

Boosts

Views

Activity

Reply to Xcode 12.4: Image Literal returns error message
In the newest Xcode14.0, you can still use #imageLiteral( and press tab or enter to auto generate the select button, and then double click to choose the image you need. e.g diceImageView1.image = #imageLiteral(; # after press tab/enter and choose the image diceImageView1.image = imageLiteral(resourceName: "DiceSix"); P.S Don't forget the left bracket and the whitespace around "=" (or double click won't work)
Sep ’22