Implements and optimizes modern SwiftUI gestures with proper state management and conflict resolution for iOS development.
This skill empowers Claude to handle complex SwiftUI gesture logic, from simple taps to sophisticated multi-finger interactions like magnification and rotation. It emphasizes modern iOS 17+ APIs—such as MagnifyGesture and RotateGesture—and Swift 6.3 patterns, ensuring developers correctly manage transient state with @GestureState and resolve gesture hierarchy conflicts. Whether you are building an interactive image gallery or a complex drag-and-drop interface, this skill provides the implementation patterns and best practices needed for fluid, production-grade Apple framework interactions.
主要功能
01409 GitHub stars
02Advanced gesture composition using simultaneous, sequenced, and exclusive patterns
03Transient state management with @GestureState for automatic UI resets
04Reusable custom Gesture protocol conformances and View extensions
05Resolution of parent-child gesture conflicts using high-priority modifiers
06Implementation of iOS 17+ MagnifyGesture and RotateGesture APIs
使用场景
01Adding pinch-to-zoom and rotation to image galleries or canvas applications
02Fixing gesture conflicts where parent views swallow child component interactions
03Creating complex drag-and-drop interfaces with long-press prerequisites