Crash while presenting popover on toolbar item in MacCatalyst app

struct ContentView: View { @State private var showingPopover:Bool = false private var popOverHeight: CGFloat { return 566 }

var body: some View {
    NavigationStack {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundStyle(.tint)
            Text("Hello, world!")
        }
        .padding()
        .toolbar {
            ToolbarItem(placement: .topBarTrailing)  {
                Button {
                    showingPopover = true
                } label: {
                    Image(systemName: "plus")
                        .font(Font.system(size: 15))
                        .foregroundColor(Color.red)
                }
                .popover(isPresented: $showingPopover) {
                    FTShelfNewNotePopoverView1()
                        .frame(minWidth: 340.0)
                        .frame(height: popOverHeight)
                }
            }
        }
    }
}

}

Crash while presenting popover on toolbar item in MacCatalyst app
 
 
Q