Overview
I'm facing an issue where the MacOS Toolbar shows overall inconsistent behavior when switching from 3 columns to 2 columns NavigationSplitViews.
I'd like to know if this is somehow expected or possible fixes for this issue.
Details
I'm using the code available at this WWDC22 session to reproduce the issue: https://developer.apple.com/documentation/swiftui/bringing_robust_navigation_structure_to_your_swiftui_app
This same inconsistent behavior is also appearing on another project.
Steps to reproduce:
- Open the application and select the 3 columns option
- Select any item on the sidebar.
- Notice how the toolbar is displayed. There is no divider and the primary action placement on the far-right of the Toolbar.
- Click on it and select now 2 columns.
- Notice how the toolbar is displayed. Now the primary action is no longer on the far right of the toolbar, but on the right of what would be the content view. Besides that, a divider is now appearing.
- Click again on the wand and select 3 columns once again.
- The toolbar display is different from the first time. Now the divider has persisted and the primary action is not on its expected placement, on the far right.
Worth noticing that if I select 2 columns right away, the primary action is not available.