Xcode 10 - image literals no longer available

后端 未结 9 2097
甜味超标
甜味超标 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:12

    In Xcode 10 and Swift 4.2, only the code completion function (or auto-complete) of the Xcode IDE has been discontinued for the old way. Here is the new way:

    Just type image literal and it will complete with default icon.

     

    Double click on this icon and it will open the media library right side of it.

     

    Just choose your imagem and it work like before!

提交回复
热议问题