We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6754a6a commit 5bb170cCopy full SHA for 5bb170c
Sources/GateEngine/UI/View.swift
@@ -699,7 +699,7 @@ extension View {
699
guard userInteractionEnabled else {return nil}
700
let frame = self.computedWindowSpaceFrame.clamped(within: clipRect)
701
if frame.contains(position) {
702
- for subview in subviews {
+ for subview in subviews.reversed() {
703
if let hit = subview.hitTest(position, clipRect: frame) {
704
return hit
705
}
0 commit comments