Skip to content

feat(gesture): add hitTestingLayoutGesture SPI - #1150

Merged
Kyle-Ye merged 1 commit into
mainfrom
feature/hit_test_layout_gesture
Oct 15, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
feature/hit_test_layout_gesture

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Add the hitTestingLayoutGesture() SPI with DocC, which rebinds hit-testable events to the frontmost child whose content shape contains the event location.
  • Add an internal layoutGesture(_:) modifier and responder that route a view's child responders through a layout gesture created from a transform closure.

Add the layout gesture modifier infrastructure and the
HitTestingLayoutGesture that rebinds hit-testable events to the
frontmost child containing the event location.
@github-actions github-actions Bot added area: event-gesture Events, gestures, tracing, or interaction plumbing. type: feature New API, behavior, platform support, or user-facing capability. labels Oct 15, 2026
@tuist

tuist Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Ran test modules Commit
OpenSwiftUI ✅ 0 aff01b9f5

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 49.3s aff01b9f5

@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 82 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.97%. Comparing base (f25befa) to head (f246a1f).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
...nSwiftUI/Event/Gesture/LayoutGestureModifier.swift 0.00% 60 Missing ⚠️
...wiftUI/Event/Gesture/HitTestingLayoutGesture.swift 0.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1150      +/-   ##
==========================================
+ Coverage   26.01%   29.97%   +3.96%     
==========================================
  Files         858      923      +65     
  Lines       63213    73336   +10123     
==========================================
+ Hits        16443    21982    +5539     
- Misses      46770    51354    +4584     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit 3eb296a into main Oct 15, 2026
6 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/hit_test_layout_gesture branch October 15, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: event-gesture Events, gestures, tracing, or interaction plumbing. type: feature New API, behavior, platform support, or user-facing capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant