Skip to content

Commit a99d9dd

Browse files
committed
Fix tap gesture test
1 parent e9aabc4 commit a99d9dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AppKitBackend/AppKitBackend.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ public final class AppKitBackend: AppBackend {
10961096
}
10971097

10981098
public func createTapGestureTarget(wrapping child: Widget, gesture _: TapGesture) -> Widget {
1099-
if child is NSCustomTapGestureTarget {
1099+
if child.subviews.count >= 2 && child.subviews[1] is NSCustomTapGestureTarget {
11001100
return child
11011101
}
11021102

0 commit comments

Comments
 (0)