NavigationLink does not work

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

Replies

NavigationLink only has meaning in a navigation context (i.e., when it‘s inside a NavigationStack or NavigationSplitView).

Thank you for your answer. in this case, how can I go to a new view, and navigate between these two views?