What problem does it solve?
It helps you implement SwiftUI gestures reliably by preventing common issues like gesture conflicts, transient state bugs, and deprecated APIs.
Core Features & Use Cases
- Modern gesture handling: Implements tap, long-press, drag, magnify, rotate, and related discrete/continuous behaviors for iOS 13+ and iOS 17+.
- Safe state management: Uses @GestureState for transient gesture feedback that automatically resets, while using @State for persisted interaction values.
- Gesture composition & conflict resolution: Combines gestures with simultaneously/sequenced/exclusively and resolves parent-child precedence using highPriorityGesture, simultaneousGesture, and GestureMask.
- Reusable patterns: Creates custom Gesture conformances by composing existing gestures into reusable interaction primitives.
Quick Start
Use the swiftui-gestures skill to implement a pinch-to-zoom + pan interaction in SwiftUI with transient gesture state via @GestureState and correct gesture conflict handling.