I am facing the same problem
in View1 code
.navigationDestination(isPresented: $showView2) {
View2()
}
.navigationDestination(isPresented: $showView3) {
View3()
}
in View2 code
.navigationDestination(isPresented: $showView3) {
View3()
}
if showView3 = true , will crash ,
the .navigationDestination(isPresented: $showView3) {View3() } Cannot appear in two views (View1, View2)
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: