【问题标题】:How to use Image Literal in the latest Xcode version 13?如何在最新的 Xcode 版本 13 中使用 Image Literal? 【发布时间】:2021-12-28 03:10:47 【问题描述】: 我尝试了#imageliteral 方法,但它似乎也不起作用。我需要在一个数组中使用许多图像,所以有没有其他选择? 【问题讨论】: 标签: arrays swift xcode image 【解决方案1】: 使用 #imageLiteral( 没有右括号,这样你就可以在 Xcode 13 中添加图片了。 【讨论】: