I'm trying to build an macOS App that has a MainView (containing a list of selectable items) and an InspectorView (to get more info about the selected item) on the right. I would like to have:
Is there a way to get 1. with a NavigationView as well, or should I use different views?
(I couldn't get it to work with a HSplitView either.)
Note: The window is created in an NSApplicationDelegate.
The InspectorView should be "togglable" (in best case using animations), i.e. there is a "hide/show inspector" toggle button, that should expand/collapse the InspectorView (this resizes the window).
If the InspectorView is shown, there should be a divider between the two views to resize the views (-> split view)
If the InspectorView is shown, resizing the window should first resize the InspectorView (up to a minimal width) (-> .layoutPriority)
Is there a way to get 1. with a NavigationView as well, or should I use different views?
(I couldn't get it to work with a HSplitView either.)
Note: The window is created in an NSApplicationDelegate.