On macOS 27 Beta 2, a simple NavigationSplitView example exhibits bizarre behaviour when the window is resized. The sidebar seemingly expands and collapses at random as the window is resized. The symptoms can be exacerbated with toolbar items. The sidebar appears to behave correctly when an inspector view is not present.
Copy paste the code below into a new Xcode 27 project and run on macOS 27 and then resize the window:
File -> New -> Project... -> App
import SwiftUI
@main struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
struct ContentView: View {
var body: some View {
NavigationSplitView {
Text("Sidebar")
} detail: {
Text("Content")
}
.inspector(isPresented: .constant(true)) {
Text("Inspector")
}
}
}
Adding .frame or .inspectorColumnWidth to any of the Text views does not appear to fix the issues.
- macOS: 27.0 Beta (26A5368g)
- Xcode: 27.0 beta 2 (27A5209h)