OpenGestures is an open source pure Swift gesture recognition engine.
It powers the underlying gesture handling of OpenSwiftUI.
| CI Status |
|---|
The project is for the following purposes:
- Add gesture support for non-Apple platforms
- Diagnose and debug Gestures Framework (introduced on AppleOS 26) issues on Apple platforms
Currently, this project is in early development.
Add OpenGestures as a dependency in your Package.swift:
dependencies: [
.package(url: "https://github.com/OpenSwiftUIProject/OpenGestures.git", from: "0.1.0")
]Note
By default, OpenGesturesShims will use OpenGestures as its implementation on all platforms.
| Target | Description |
|---|---|
| OpenGestures | Main Swift module exposing the public API |
| COpenGestures | C/ObjC bridge layer with OGF-prefixed headers |
| OpenGesturesShims | Compatibility shims for the gesture API |
The current suggested toolchain to build the project is Swift 6.2 / Xcode 26.3.
swift build
swift testSee LICENSE file - MIT