Xcode 10 - image literals no longer available

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

    i'm using Xcode 10 beta 4 and i have the same problem ! Resolved using the old way to pass an image

    PizzaModel(
                nome: "Marinara",
                ingredienti: "Pomodoro, Aglio",
                calorie: "729",
                img: UIImage(named: "marinara")!
    )
    

提交回复
热议问题