I am in desperate need of help with figuring out how to navigate my screens. I’ve tried everything, I looked at the videos but Chris is using a different way to get to another screen and I looked at the basic of SwiftUi videos and still nothing, it’s completely different than mine, and I tried what you said and still didn’t work
struct WelcomeView: View {
var body: some View {
ZStack {
Image("birthday")
.resizable()
.scaledToFill()
.edgesIgnoringSafeArea(.all)
VStack(alignment: .center) {
Spacer()
Text("Welcome to Smilon!!")
.font(.largeTitle)
.fontWeight(.bold)
.foregroundColor(Color.black)
.multilineTextAlignment(.center)
Spacer()
Button("Join") {
//go to AboutUs view
}
.padding(/*@START_MENU_TOKEN@*/.all/*@END_MENU_TOKEN@*/)
.font(.title)
.shadow(radius: 2)
.foregroundColor(Color.black)
Text("By tapping Join, you agree to our privacy policy")
.fontWeight(.bold)
.foregroundColor(Color.black)
.padding(/*@START_MENU_TOKEN@*/.all/*@END_MENU_TOKEN@*/)
}
}
}
struct WelcomeView_Previews: PreviewProvider {
static var previews: some View {
WelcomeView()
}
}
}
This is code I have right now and I’m trying to navigate through the screens