'How to use Image Literal in the latest Xcode version 13?

I have tried the #imageliteral method but it seems to not working also. I need to use many images in an array so is there any alternative to it or not?



Solution 1:[1]

Use

#imageLiteral(

without the closing parenthesis, In this way you can add images in Xcode 13.

Solution 2:[2]

use #imageLiteral like you did befor but then add the parentheses and you will get a blank image. Then click the image and you probably know what to do after that

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Azhar Tahir
Solution 2 CoderGamer22