[SwiftUI Bug] swipeActions crash NavigationStack in a NavigationView on macOS

Hello, I recently discovered some piece of code which I believe is a bug for SwiftUI. It only crashes on macOS, and I don't know how I can send the feedback to Apple. Here is a reduced code snippet:

struct ContentView: View {
    let right = ["a", "b", "c"]
    var body: some View {
        NavigationSplitView {} detail: {
            NavigationStack {
                List(right, id: \.self) { text in
                    Text(text)
                        .swipeActions {} // <-- this line causes crash on mac if you toggle the show / hide side bar button
                }
            }
        }
    }
}

The crash can be triggered by toggling the button that shows / hides the side bar. This code works fine on iOS

This has been fixed in macOS 14.3.1

[SwiftUI Bug] swipeActions crash NavigationStack in a NavigationView on macOS
 
 
Q