Skip to content

Add UIKit event and gesture integration - #1036

Merged
Kyle-Ye merged 17 commits into
mainfrom
feature/gesture
Aug 30, 2026
Merged

Kyle-Ye merged 17 commits into
mainfrom
feature/gesture

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add UIKit event binding sources and responder-aware gesture recognizers for touch, hover, scroll, transform, physical button, and key events.
  • Connect hosting views to the event bridge, gesture recognizers, key-press responder chain, and inherited representable context.
  • Add supporting UIKit shims and event models, with coverage for PanEvent behavior.

Related

@github-actions github-actions Bot added area: event-gesture Events, gestures, tracing, or interaction plumbing. area: hosting-bridge SwiftUI bridge, UIHosting/NSHosting, representables, and platform host views. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. platform: iOS iOS-specific behavior or support. type: feature New API, behavior, platform support, or user-facing capability. labels Aug 30, 2026
@tuist

tuist Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI ✅ 0 % 82 0 82 70b78fd5d

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 2m 16s 70b78fd5d

@Kyle-Ye Kyle-Ye mentioned this pull request Aug 30, 2026
@codecov

codecov Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 23.57143% with 107 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.27%. Comparing base (ecfaf42) to head (c0d3797).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/OpenSwiftUI/Event/Event/KeyEvent.swift 0.00% 37 Missing ⚠️
...es/OpenSwiftUI/Event/Event/ModifierKeySource.swift 0.00% 31 Missing ⚠️
Sources/OpenSwiftUI/Event/Event/TouchEvent.swift 0.00% 18 Missing ⚠️
Sources/OpenSwiftUI/Event/Event/HoverEvent.swift 0.00% 7 Missing ⚠️
...le/Platform/PlatformViewRepresentableContext.swift 0.00% 7 Missing ⚠️
...nSwiftUICore/Event/Event/PhysicalButtonEvent.swift 0.00% 5 Missing ⚠️
...ces/OpenSwiftUICore/Event/Event/SpatialEvent.swift 0.00% 1 Missing ⚠️
...urces/OpenSwiftUICore/Semantic/CustomFeature.swift 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1036      +/-   ##
==========================================
+ Coverage   29.24%   29.27%   +0.02%     
==========================================
  Files         776      782       +6     
  Lines       61826    61959     +133     
==========================================
+ Hits        18082    18137      +55     
- Misses      43744    43822      +78     

☔ 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 e9ea58d into main Aug 30, 2026
8 of 9 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/gesture branch August 30, 2026 18:54
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. area: hosting-bridge SwiftUI bridge, UIHosting/NSHosting, representables, and platform host views. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. platform: iOS iOS-specific behavior or support. 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