Post

Replies

Boosts

Views

Activity

New SwiftUI Project Won't Compile and Show Live Preview
Hello, I am new to SwiftUI and Xcode in general. I am currently following along with the IOS development course provided by Stanford, and have run into an issue when creating a new SwiftUI Project. When I create a new SwiftUI project using the "Create a New Project" in the launch screen of Xcode, the generated code provided to me, does not seem to compile and subsequently, the live preview will not work ( I have attached a screenshot below). Since I am new to Xcode and IOS development, I honestly have no idea what could be causing this issue. I have the latest Xcode version (12.5.1) and using Swift 5. Does anyone know how to fix this issue? Thanks!
1
0
528
Aug ’21