You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, using NavigationSplitView adds a “toggle sidebar” toolbar button that cannot be removed. In addition, on macOS, the user is free to resize the sidebar to zero width, which hides it.
There are apps where it does not make sense to hide the sidebar. It would be nice if there was a modifier for this. Something similar to .interactiveDismissDisabled() like .sidebarCollapseDisabled(). The modifier would make it not add a “toggle sidebar” button to the toolbar and make it impossible for the user to resize to hide the sidebar on macOS.
For example, NSSplitViewItem has the ability to prevent hiding the sidebar with its .canCollapse = false property.
The text was updated successfully, but these errors were encountered:
Description
Currently, using NavigationSplitView adds a “toggle sidebar” toolbar button that cannot be removed. In addition, on macOS, the user is free to resize the sidebar to zero width, which hides it.
There are apps where it does not make sense to hide the sidebar. It would be nice if there was a modifier for this. Something similar to
.interactiveDismissDisabled()
like.sidebarCollapseDisabled()
. The modifier would make it not add a “toggle sidebar” button to the toolbar and make it impossible for the user to resize to hide the sidebar on macOS.For example,
NSSplitViewItem
has the ability to prevent hiding the sidebar with its.canCollapse = false
property.The text was updated successfully, but these errors were encountered: