Post

Replies

Boosts

Views

Activity

Comment on NSHostingView stops receiving mouse events when layered above another NSHostingView (macOS Tahoe 26.2)
@DTS Engineer Thanks for your reply. 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 doesn’t respond. When I try to override the hitTest of the top view to pass through to the next view, certain buttons on the top layer do not respond. How could I apply your solution here?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Comment on NSHostingView stops receiving mouse events when layered above another NSHostingView (macOS Tahoe 26.2)
@DTS Engineer Thanks for your reply. 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 doesn’t respond. When I try to override the hitTest of the top view to pass through to the next view, certain buttons on the top layer do not respond. How could I apply your solution here?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Comment on NSHostingView stops receiving mouse events when layered above another NSHostingView (macOS Tahoe 26.2)
@DTS Engineer Thanks for your reply. 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 doesn’t respond. When I try to override the hitTest of the top view to pass through to the next view, certain buttons on the top layer do not respond. How could I apply your solution here?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Comment on NSHostingView stops receiving mouse events when layered above another NSHostingView (macOS Tahoe 26.2)
@DTS Engineer Thanks for the reply. But 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. I tried to override the top layer's hitTest to pass to the middle layer, but then the top layer's certain swiftUI buttons do not respond. I did not really understand how this can be fixed. How could I apply your solution?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w