Hi! I'm very, very new to Swift and SwiftUI and have been getting an error when I try to use VStack. It says "Cannot find VStack in scope" even though I believe it is in scope. Also, it is only the first Vstack that is throwing the error.
Any idea what the issue is?
struct ContentView: View {
var body: some View {
Vstack(spacing: 40) {
VStack(spacing: 20) {
Text("Cosmostory")
.gameTitle()
Text("A fun trivia game using our course themes!")
.foregroundColor(Color("Accent Color"))
}
PrimaryButton(text: "Let's go!")
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding()
.edgesIgnoringSafeArea(.all)
.background(Color(red: 0.98, green: 0.929, blue: 0.847))
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}