NavigationStack has no animations or back gesture in macOS

When running a native macOS app using SwiftUI and a NavigationStack, clicking any links causes the contents of the stack to change immediately with no animation, and you can't use the usual two-finger swipe gesture to go back.

The behavior is correct when running it as a Mac Catalyst app, you get the animated transitions when navigating, and swiping works.

Minimal Example: (put this directly inside the WindowGroup)

NavigationStack {
    VStack {
        NavigationLink {
            Rectangle().foregroundStyle(.red)
        } label: {
            Text("Button")
        }
    }
}
NavigationStack has no animations or back gesture in macOS
 
 
Q