Hello,
For my first watchOS app, I want use a navigationLink for switch to a new view, but the button does not work. Can you help me ?
import SwiftUI
struct ContentView: View {
@State var timerVal = 1
@State var secondScreenShow = false
@State private var selectedColor = "30s"
var body: some View {
VStack {
NavigationLink (
destination: SecondView1()
, isActive: $secondScreenShow, label: {
Text("GO")
})
}
}
}
struct SecondView1: View {
var body: some View {
VStack {
Text ("second view1")
}
}
}
struct ContentView_Preview: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Thank you