Xcode 10 - image literals no longer available

后端 未结 9 2078
甜味超标
甜味超标 2020-12-08 03:46

Xcode 10 Release Notes: \"Code Completion for Swift image literals has been removed in Xcode 10\"

So it\'s not a bug that I couldn\'t ad

9条回答
  •  爱一瞬间的悲伤
    2020-12-08 04:19

    You can use Media Library in Xcode to add image literal to your code:

    And then choose image from library and drag&drop it to your code

    It will create image literal

提交回复
热议问题