I need help. I keep getting an error with the following message: Cannot find 'ContentView' in scope. TIA
import SwiftUI
@main struct mathgeniusApp: App { var body: some Scene { WindowGroup { ContentView() } } }
I need help. I keep getting an error with the following message: Cannot find 'ContentView' in scope. TIA
import SwiftUI
@main struct mathgeniusApp: App { var body: some Scene { WindowGroup { ContentView() } } }
Welcome to the forum.
Have you defined a ContentView somewhere ? Such as:
struct ContentView: View {
var body: some View {
Text("Hello, World!")
}
}
Note: when posting on the forum, take care to use appropriate tag. Here SwiftUI would be the best one.
If this solves your problem, don't forget to close the thread by marking as coprrect answer. Otherwise, please tell what the issue is.