I have a split view in my iPad ready app:
struct ContentView: View {
var body: some View {
NavigationView {
List {
NavigationLink("Show the slave view HERE", destination: SlaveView())
.navigationBarTitle("Master view")
}
Text("Detail view")
.navigationBarTitle("DO NOT show the slave view here")
}
}
}
So I like the SlaveView view to open in the list itself, not in the detail view.
I have tried setting another NavigationView in the Slave, also a text below that, also setting all navigationViewStyles on both and each Master and Slave with no luck.
This is the simplest Slave view you can have to make it build:
struct SlaveView: View {
var body: some View {
List {
NavigationLink("Sub Detail view", destination: Text("Sub Detail view"))
}
.navigationBarTitle("Slave view")
}
}
So how can I change the Master (left) view of the split view instead of the detail (right) view?
Note that this is a simplified reproducible code. The real project uses more complex lists for master and slaves and so on. Also, we don't want to loos navigation stuff like transitions, title transforming, back button and etc.
For more clarifying, I need this state in the flow:

Just modify link that it is not a detail

NavigationLink("Show the slave view HERE", destination: SlaveView())
.isDetailLink(false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With