I'm running into an issue with the SidebarListStyle on macOS. Because I'm using this style for the List, the sidebar divider is draggable, and you can drag it all the way left and hide the sidebar entirely (and it won't come back and I have to remove the app and preferences for it to be visible again).
I'm setting a minimum value on the frame of the sidebar like this; however, it doesn't seem to be respected when running the app:
Is there a way to (a) Be able to specify a minimum width for the SideBarListStyle when presented in a NavigationView on macOS and (b) if the user is able to drag the divider to hide the SideBarListStyle, is there a way to programmatically unhide it when it's been hidden by the user?
I'm setting a minimum value on the frame of the sidebar like this; however, it doesn't seem to be respected when running the app:
Code Block var body: some View { NavigationView { sidebar .frame(minWidth: 200, idealWidth: 200, maxWidth: 400, maxHeight: .infinity) } }
Is there a way to (a) Be able to specify a minimum width for the SideBarListStyle when presented in a NavigationView on macOS and (b) if the user is able to drag the divider to hide the SideBarListStyle, is there a way to programmatically unhide it when it's been hidden by the user?