NavigationSplitView 3 column, show/hide the left sidebar.

Hi, I have an iPad app using a NavigationSplitView in 3 columns. The far left sidebar is initially hidden. NavigationSplitView automatically includes a button to show the sidebar but once it is displayed the button is removed so the user has no obvious way to close the sidebar again (you can swipe it away but who knows that?). The sidebar contains a List just like the builtin Notes app. I have a "columnVisibility" property to track the display state of the third column.

Does anyone know how to either:

  1. Detect that the user has selected something in the sidebar List so the sidebar can be hidden using the columnVisibility property, or

  2. Keep the toggle button around so the user can close the sidebar with that?

Thank you for any ideas you may have. J