If you use `DoubleColumnNavigationViewStyle` with a `NavigationView`
struct ContentView: View {
var body: some View {
// Navigation View
NavigationView {
// Master View
MasterView()
}.navigationViewStyle(DoubleColumnNavigationViewStyle())
}
}
and in the `MasterView`, you use a NavigationLink in a list with GroupedListStyle`.
the NavigationLink aims to push another View into the master column, using `isDetailLink(false)`
struct MasterView : View {
var body: some View {
List {
NavigationLink(
destination: EmptyView()
) {
Text("show in master")
}.isDetailLink(false)
}
.listStyle(GroupedListStyle())
}
}
Then you'll surprice yourself:
1. in Mac Catalyst, if you click the cell "show in master",
the `UINavigationController` will automatically push multiple times and go back to the `MasterVIew`.
2. in iOS (iPhone and iPad), if you tap the cell "show in master", and then tap "back",
the cell "show in master" will be disabled. No effect when you tap the cell again.