Hello everyone,
I'm attempting to incorporate a button in my StartView that will lead directly to ContentView without the intermediate step of using a navigation view. I want StartView to seamlessly transition into ContentView.
Thank you very much in advance!
import SwiftUI
struct StartView: View { @State private var isQuizStarted = false @Environment(.presentationMode) var presentationMode
var body: some View {
VStack {
Text("Radiology Core Prep Q&A")
.font(.headline)
.padding()
Image("cxr")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(height: 325)
}
}
}
struct StartView_Previews: PreviewProvider {
static var previews: some View {
StartView()
}
}