Skip to content

feat: add AppKit gesture event integration - #1070

Merged
Kyle-Ye merged 4 commits into
mainfrom
feature/gesture_appkit
Sep 13, 2026
Merged

Kyle-Ye merged 4 commits into
mainfrom
feature/gesture_appkit

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Sep 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Add magnification and rotation event types and AppKit event conversions.
  • Implement AppKitGestureRecognizer and AppKitEventBindingBridge to connect native gesture events to event bindings.
  • Integrate event management into NSHostingView, including recognizer installation and event reset on window detachment and reuse.
  • Add private AppKit gesture declarations and document left-button event targeting.

@Kyle-Ye
Kyle-Ye requested a review from Mx-Iris as a code owner September 13, 2026 08:46
@tuist

tuist Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI ✅ 0 % 1197 0 1197 0b5737e2f

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 43.7s 0b5737e2f

@codecov

codecov Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 12.38532% with 191 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.79%. Comparing base (975246e) to head (ac75aae).

Files with missing lines Patch % Lines
...vent/Platform/AppKit/AppKitGestureRecognizer.swift 7.43% 112 Missing ⚠️
...ntegration/Hosting/AppKit/View/NSHostingView.swift 23.72% 45 Missing ⚠️
...nt/Platform/AppKit/AppKitKeyEventConversions.swift 0.00% 17 Missing ⚠️
...ent/Platform/AppKit/AppKitEventBindingBridge.swift 26.66% 11 Missing ⚠️
Sources/OpenSwiftUI/Event/Event/MagnifyEvent.swift 0.00% 3 Missing ⚠️
Sources/OpenSwiftUI/Event/Event/RotateEvent.swift 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1070      +/-   ##
==========================================
- Coverage   29.85%   29.79%   -0.07%     
==========================================
  Files         791      796       +5     
  Lines       62616    62829     +213     
==========================================
+ Hits        18696    18717      +21     
- Misses      43920    44112     +192     

☔ 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.

@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. platform: macOS macOS-specific behavior or support. type: feature New API, behavior, platform support, or user-facing capability. labels Sep 13, 2026
@Kyle-Ye
Kyle-Ye force-pushed the feature/gesture_appkit branch from c5fd863 to ac75aae Compare September 13, 2026 10:10
@Kyle-Ye
Kyle-Ye merged commit 09782db into main Sep 13, 2026
6 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/gesture_appkit branch September 13, 2026 10:40
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. platform: macOS macOS-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