NSTrackingSeparatorToolbarItem causes white bar over top of content in macOS 27 developer beta 5

macOS 27 developer beta 5 (26A5406e) introduces a bug that causes a white bar to appear over window content if the window’s toolbar has an NSTrackingSeparatorToolbarItem. I filed FB24266969 with Apple describing this.

I have a sample project demonstrating this. This is a screenshot of the result:

A window showing a split view with 3 panes. The first pane has a solid blue color, the second has a solid green color, and the third has a solid orange color. At the top of the window there is a toolbar. Just below the toolbar there is a weird white bar that is just about the height of the toolbar. But it is below the toolbar, covering the top of the content.

To reproduce the issue:

  1. Open the attached sample project.
  2. Observe that the app presents a simple window with a 3-pane split view and a toolbar, and that there is a NSTrackingSeparatorToolbarItem tracking the separator between the second split view pane and the third split view pane.
  3. Run the app on a Mac running macOS 27 developer beta 5.

Expected results: The window should appear with a toolbar and the three panes.

Actual results: The window appears, but there is a white bar covering the top of the content. That white bar is roughly the height of the toolbar, but it is below the toolbar.

Interestingly, I described a somewhat similar issue almost a month ago with developer beta 3. That prior issue only became visible after invoking full screen mode. It was fixed in developer beta 4. This new issue happens right away when the window appears.