Popover in Toolbar Causes Crash in Catalyst App on macOS 26

Hi everyone,

I’ve encountered an issue where using a popover inside the toolbar of a Catalyst app causes a crash on macOS 26 beta 5 with Xcode 26 beta 5. Here’s a simplified code snippet:

import SwiftUI

struct ContentView: View {
    
    @State private var isPresentingPopover = false
    
    var body: some View {
        NavigationStack {
            VStack {
            }
            .padding()
            .toolbar {
                ToolbarItem {
                    Button(action: { isPresentingPopover.toggle() }) {
                        Image(systemName: "bubble")
                    }
                    .popover(isPresented: $isPresentingPopover) {
                        Text("Hello")
                            .font(.largeTitle)
                            .padding()
                    }
                }
            }
        }
    }
    
}

Steps to reproduce:

  1. Create a new iOS app using Xcode 26 beta 5.
  2. Enable Mac Catalyst (Match iPad).
  3. Add the above code to show a Popover from a toolbar button.
  4. Run the app on macOS 26, then click the toolbar button.

The app crashes immediately upon clicking the toolbar button.

Has anyone else run into this? Any workarounds or suggestions would be appreciated!

Thanks!

FB19460396

Popover in Toolbar Causes Crash in Catalyst App on macOS 26
 
 
Q