I believe to have found a bug when trying to use isDetailLink(true) on some NavigationLinks and isDetailLink(false) on others, where the master view pops itself. Happens 100% of the time.
Here is the sample code, please run it on an iPad (simulator or device) in landscape, and do the three steps:
struct ContentView: View {
var body: some View {
NavigationView {
List {
//FIRST STEP - tap this to push to detail
NavigationLink("Push Detail") {
Text("Detail")
}
//SECOND STEP - tap this to push to master
NavigationLink("Push to Root") {
//THIRD STEP - tapping this will push to detail but will pop the master
NavigationLink("Push Root Detail" ) {
Text("Root Detail")
}
}.isDetailLink(false)
}
Text("Initial Detail")
}
}
}
Does anyone know a way around this?