Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides SwiftUI gesture implementation, review, and conflict resolution, covering tap, drag, magnify, rotate, and composition APIs.
77% 95%+18 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 17 of 22 without it.
In a SwiftUI detail card, I want a double-tap gesture to take complete precedence over a long press gesture, so that if a double-tap succeeds, the long press fails. Which gesture combination method provides this mutual exclusivity?
Composes the gestures using .exclusively(before:).
3 of 3 safety checks passed
Review, write, and fix SwiftUI gesture interactions. Apply modern gesture APIs with correct composition, state management, and conflict resolution using Swift 6.3 patterns.
Scope boundary: This skill owns SwiftUI gesture recognition, composition,
gesture state, and gesture-specific accessibility alternatives. Broader
SwiftUI architecture/state ownership belongs in swiftui-patterns; list,
scroll, form, and control layout belongs in swiftui-layout-components; broad
UIKit bridging belongs in swiftui-uikit-interop.
When correcting Apple API availability, deprecation, or behavior claims, cite the relevant Sosumi or official Apple documentation URL in the response.
@GestureState| Gesture | Type | Value | Since |
|---|---|---|---|
TapGesture | Discrete | Void | iOS 13 |
LongPressGesture | Discrete | Bool | iOS 13 |
DragGesture | Continuous | DragGesture.Value | iOS 13 |
MagnifyGesture | Continuous | MagnifyGesture.Value | iOS 17 |
RotateGesture | Continuous | RotateGesture.Value | iOS 17 |
Next to this one in the catalogue, plus more from the same author.