The following code works correctly on regular variation (i.e. iPhone 11 Pro Max in landscape mode), but it fails in compact variation (i.e. iPhone 11 Pro)
Is there a, simple, way to switch between the first and the second behaviour runtime?
Otherwise this code, or spilt view code, cannot be used generically on iPhones, even on landscape mode only, because currently only iPhone 11 Pro Max is regular, while the others are compact.
Code Block struct ContentView: View { var body: some View { NavigationView { Text("Detail View") .navigationBarTitle("detail") Text("Primary View") } } }
Is there a, simple, way to switch between the first and the second behaviour runtime?
Otherwise this code, or spilt view code, cannot be used generically on iPhones, even on landscape mode only, because currently only iPhone 11 Pro Max is regular, while the others are compact.