The most used feature is missing in Xcode 13
Image Literal
#imageLiteral()
these commands do not seem to be working. A similar change has happened for Color Literals as well.
The most used feature is missing in Xcode 13
Image Literal
#imageLiteral()
these commands do not seem to be working. A similar change has happened for Color Literals as well.
There is no longer image literal :(
You may try:
Who.What = UIImage(named: "catImage")
I came up with a workaround
Create code snippets for color literal and image literal like below
Color
#colorLiteral()
And add completion shortcut as you want, Example: colorLiteral.
Do same for Image literal
Image
#imageLiteral()
And add completion shortcut as you want. Call those completion shortcuts in your code to get color and image literals.
I used
UIImage(imageLiteralResourceName: "image_asset_name")
and it works perfectly fine on XCode 13.2.1