I'm having issues in Xcode with the ContentView. The error says "cannot find ContentView in Scope". How do I fix that?
ContentView error
Add a Comment
I'm having issues in Xcode with the ContentView. The error says "cannot find ContentView in Scope". How do I fix that?
You should have in your code somewhere, something like this:
struct ContentView: View {
var body: some View {
Text("Hello, World!")
}
}
thanks
wrong image. heres the correct image
You should have in your code somewhere, something like this:
struct ContentView: View {
var body: some View {
Text("Hello, World!")
}
}
thanks
Just make sure it has a target selected under target membership: