How to use double/triple columns navigation style in SwiftUI document-based app?
The problem is that the DocumentGroup() itself, seems already a NavigationView.
In a non-document-based app, we can simply achieve this using three views within a navigation view.
However, this is not the case for DocumentGroup.
The views will be "VStack-ed".
I've also tried setting the navigation view style as double column, which also failed.
Any workaround?
The problem is that the DocumentGroup() itself, seems already a NavigationView.
In a non-document-based app, we can simply achieve this using three views within a navigation view.
However, this is not the case for DocumentGroup.
The views will be "VStack-ed".
I've also tried setting the navigation view style as double column, which also failed.
Any workaround?
Code Block @main struct SomeApp: App { var body: some Scene { WindowGroup { ContentView() } } } struct ContentView: View { var body: some View { NavigationView { LeftPanelView() MidPanelView() RightPanelView() } } }