Post

Replies

Boosts

Views

Activity

Reply to SwiftUI NavigationLink pops out by itself
I'm seeing this on watchOS. Unfortunately, isDetailLink is not available. Using a NavigationLink inside a TabView is what triggers this behavior for me. Able to reproduce it with the following view: struct ContentView: View {     var body: some View {         TabView() {             NavigationLink("Test", destination: EmptyView())         }     } } I see the following warning when I do not set the TabView's selection: TestNav WatchKit Extension[15697:678189] [SwiftUI] Accessing State's value outside of being installed on a View. This will result in a constant Binding of the initial value and will not update. I can set selection to a constant and the warning goes away, but the behavior persists. TabView(selection: .constant(0)) { ... }
Apr ’22