I am building a macOS app using SwiftUI.
I've seen examples of using a NavigationView to do a Mail-style 3 pane app.
In that case, there are two levels of master-detail so a NavigationView makes sense.
(Mailboxes List > Messages List > Message Detail)
I am trying to write a "Sidebar - Editor - Inspector" 3-pane app.
In that case, the sidebar is the master, and both the editor and the inspector are part of a detail view of the selected item in the sidebar. So, it makes sense to use a split view between the editor and the inspector.
Is there any sample code, tips, tricks, or anything at all demonstrating or describing how to get typical inspector behavior using HSplitView in a Mac app?
The single sentence of documentation describes what a split view is, but no info on strategies for how to use it well.
Thanks for any insights / anything at all really.
I've seen examples of using a NavigationView to do a Mail-style 3 pane app.
In that case, there are two levels of master-detail so a NavigationView makes sense.
(Mailboxes List > Messages List > Message Detail)
I am trying to write a "Sidebar - Editor - Inspector" 3-pane app.
In that case, the sidebar is the master, and both the editor and the inspector are part of a detail view of the selected item in the sidebar. So, it makes sense to use a split view between the editor and the inspector.
Is there any sample code, tips, tricks, or anything at all demonstrating or describing how to get typical inspector behavior using HSplitView in a Mac app?
The single sentence of documentation describes what a split view is, but no info on strategies for how to use it well.
Thanks for any insights / anything at all really.