Cannot find 'ContentView' in scope

How can I get rid of this error ?


import SwiftUI



@main

struct Project_Health_calculatorsApp: App {

    var body: some Scene {

        WindowGroup {

            ContentView()  //  <-  error is here

        }

    }

}

You have to define such a view.

Add after this code:

 struct ContentView: View {
    var body: some View {
        Text("Hello")
    }
}

I guess you need to solve your another question in the right way. Why do you not respond to comments or answers?

Cannot find 'ContentView' in scope
 
 
Q