Skip to main content
skill CX Codex

swiftui-gestures — Claude Code skill: what it does, how to install

Guides gesture implementation in SwiftUI, from tap and drag recognition to multi-gesture composition and conflict handling.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill swiftui-gestures -a claude-code
Open on GitHub

What swiftui-gestures does

This skill provides instructions for implementing and reviewing SwiftUI gestures under modern Swift 6.3 patterns. It details basic gestures like TapGesture and LongPressGesture, alongside continuous interactions using DragGesture, MagnifyGesture, and RotateGesture.

It guides gesture composition using .simultaneously(with:), .sequenced(before:), and .exclusively(before:). For transient animations, it enforces @GestureState to automatically reset values once a touch interaction finishes.

Layouts, lists, and broader state architecture are outside its boundary and require separate skills. It targets modern APIs starting with iOS 17, replacing deprecated types like MagnificationGesture.

What it helps with

  • combine zoom and rotation gestures simultaneously on a view
  • chain a long press before starting a drag interaction
  • migrate deprecated MagnificationGesture to MagnifyGesture
  • manage transient interaction offsets with @GestureState

Example prompts for the agent

  • Combine pinch-to-zoom and rotation gestures on an image using simultaneously
  • Implement a drag gesture that only activates after a successful long press
  • Update this view from MagnificationGesture to iOS 17 MagnifyGesture with @GestureState

How to install swiftui-gestures

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill swiftui-gestures -a claude-code

2Manually: put the files in place

~/.claude/skills/swiftui-gestures/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/swiftui-gestures/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about swiftui-gestures

How to install swiftui-gestures in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill swiftui-gestures -a claude-code. This adds the gesture guidelines to your agent environment.

What does the swiftui-gestures skill do?

It guides AI assistants in writing and debugging SwiftUI gesture logic. It covers gesture composition, hit-testing priority, and state binding.

When should @GestureState be used instead of @State?

Use @GestureState for temporary values that must automatically reset when the gesture finishes. For persistent transformations like final offsets, store the result in @State.

Similar skills

Everything for Mobile →

From the same set86

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor