If you change the titlebarSeparatorStyle
property of a NSSplitViewItem
, the window does not update immediately. You have to set the focus to another app first for the window to update. However the window isn’t update correctly either. For example the shadow never really gets applied. It works if you set the property in the storyboard. But if you want to change it programatically, it does not work as expected.
I would expect something like the Finder in Big Sur: If you display the content of a Finder window as symbols, there is no shadow or line below the toolbar. If you switch to another view (like column view) a line is being added and the toolbar becomes transparent.
I have added an example project to demonstrate the issue.
GitHub: SplitViewItem-titlebarSeperator
macOS 11.0.1 Beta (20B5012d)
Xcode Version 12.2 beta 3 (12B5035g)