Post

Replies

Boosts

Views

Activity

Reply to NSHostingView stops receiving mouse events when layered above another NSHostingView (macOS Tahoe 26.2)
Thanks, but if you look at the demo code in my post: https://stackoverflow.com/questions/79862332/nshostingview-with-swiftui-gestures-not-receiving-mouse-events-behind-another-ns, I tried logging the hit tests for both the top and middle NSHostingViews. The logs confirm that clicks are reaching both views, but the middle layer’s button with the DragGesture still doesn’t respond. Do you know how your solution could be used here?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w