Xcode 11 Beta 3, build error “Unknown attribute 'State'”, “Use of undeclared type 'View'” etc

后端 未结 4 717
孤城傲影
孤城傲影 2020-12-21 04:43

I build an app with the 2nd beta of Xcode 11, using SwiftUI, and everything worked completely fine, but now, with the 3rd beta, the app isn\'t even build. I get errors like

4条回答
  •  不思量自难忘°
    2020-12-21 05:29

    I was getting the same "Unknown attribute 'State'" issue in Beta 5. But I was doing "@state" and not "@State". Case matters. It's hard to notice because both ways are shown as purple.

提交回复
热议问题