NSHostingView stops receiving mouse events when layered above another NSHostingView (macOS Tahoe 26.2)

I’m running into a problem with SwiftUI/AppKit event handling on macOS Tahoe 26.2.

I have a layered view setup:

  • Bottom: AppKit NSView (NSViewRepresentable)

  • Middle: SwiftUI view in an NSHostingView with drag/tap gestures

  • Top: Another SwiftUI view in an NSHostingView

On macOS 26.2, the middle NSHostingView no longer receives mouse or drag events when the top NSHostingView is present. Events pass through to the AppKit view below. Removing the top layer immediately restores interaction. Everything works correctly on macOS Sequoia.

I’ve posted a full reproducible example and detailed explanation on Stack Overflow, including a single-file demo:

Stack Overflow post: https://stackoverflow.com/q/79862332

I also found a related older discussion here, but couldn’t get the suggested workaround to apply: https://developer.apple.com/forums/thread/759081

Any guidance would be appreciated.

Thanks!

NSHostingView stops receiving mouse events when layered above another NSHostingView (macOS Tahoe 26.2)
 
 
Q