SwiftUI window top left aligned on macOS 26 beta 1

We ran into a bug with our app Bezel (https://getbezel.app). When running on macOS Tahoe, windows would get partially clipped.

This is because we have SwiftUI views that are larger than the window size, our SwiftUI views are supposed to be centered, which they are on macOS 13, 14, 15. But on macOS 26 (beta 1), the window contents are top-left aligned.

This seems to be a bug, I have submitted FB18201269.

This is my code:

WindowGroup {
    ZStack {
        Color.green
        ZStack {
            Color.yellow
            Text("Hi")
        }
        .aspectRatio(1, contentMode: .fill)
        .border(.red)
    }
}

This first screenshot shows the old behavior on macOS 15:

This second screenshot shows the new behavior on macOS 26 (beta 1)

Can anyone confirm if this is indeed a bug, or if this an intended change in behavior?

This is our workaround to get the old behavior back:

GeometryReader { proxy in
    ZStack {
        Color.green
        ZStack {
            Color.yellow
            Text("Hi")
        }
        .aspectRatio(1, contentMode: .fill)
        .border(.red)
    }
    .frame(width: proxy.size.width, height: proxy.size.height)
}
SwiftUI window top left aligned on macOS 26 beta 1
 
 
Q