Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
johnrogers avatar

Haptics

  • 161 installs
  • 222 repo stars
  • Updated January 18, 2026
  • johnrogers/claude-swift-engineering

Implement iOS haptic feedback for taps, success, warnings, and state changes so native Swift apps feel responsive, polished, and aligned with Apple HIG expectations.

About

The haptics skill helps Claude Code add well-timed iOS tactile feedback using UIKit and SwiftUI patterns, choosing appropriate impact, notification, and selection generators to improve perceived quality in native mobile apps.

  • UIFeedbackGenerator usage
  • Context-appropriate haptic types
  • SwiftUI interaction hooks
  • Accessibility-aware feedback
  • Polished native feel

Haptics by the numbers

  • 161 all-time installs (skills.sh)
  • +3 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #519 of 1,039 Mobile Development skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill haptics

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs161
repo stars222
Last updatedJanuary 18, 2026
Repositoryjohnrogers/claude-swift-engineering

What it does

Implement iOS haptic feedback for taps, success, warnings, and state changes so native Swift apps feel responsive, polished, and aligned with Apple HIG expectations.

Files

SKILL.mdMarkdownGitHub ↗

Haptics

Haptic feedback provides tactile confirmation of user actions and system events. When designed thoughtfully, haptics transform interfaces from functional to delightful.

Overview

Haptics should enhance interactions, not dominate them. The core principle: haptic feedback is like sound design—every haptic should have purpose (confirmation, error, warning), timing (immediate or delayed), and restraint (less is more).

Reference Loading Guide

ALWAYS load reference files if there is even a small chance the content may be required. It's better to have the context than to miss a pattern or make a mistake.

ReferenceLoad When
[UIFeedbackGenerator](references/uifeedbackgenerator.md)Using simple impact/selection/notification haptics
[Core Haptics](references/core-haptics.md)Creating custom patterns with CHHapticEngine
[AHAP Patterns](references/ahap-patterns.md)Working with Apple Haptic Audio Pattern files
[Design Principles](references/design-principles.md)Applying Causality, Harmony, Utility framework

Core Workflow

1. Choose complexity level: Simple (UIFeedbackGenerator) vs Custom (Core Haptics) 2. For simple haptics: Use UIImpactFeedbackGenerator, UISelectionFeedbackGenerator, or UINotificationFeedbackGenerator 3. For custom patterns: Create CHHapticEngine, define CHHapticEvents, build CHHapticPattern 4. Prepare before triggering: Call prepare() to reduce latency 5. Apply design principles: Ensure Causality (timing), Harmony (multimodal), Utility (meaningful)

System Requirements

  • iOS 10+ for UIFeedbackGenerator
  • iOS 13+ for Core Haptics (CHHapticEngine)
  • iPhone 8+ for Core Haptics hardware support
  • Physical device required - haptics cannot be tested in Simulator

Common Mistakes

1. Haptic feedback on every action — Every button doesn't need haptics. Reserve haptics for critical confirmations (purchase, delete, settings change). Over-haptics are annoying and drain battery.

2. Triggering haptics on main thread blocks — Long haptic patterns can freeze UI briefly. Use background threads or async for Core Haptics prepare() calls to prevent jank.

3. Haptic without audio/visual feedback — Relying ONLY on haptics means deaf or deaf-blind users miss feedback. Always pair haptics with sound or visual response.

4. Ignoring haptic settings — Some users disable haptics system-wide. Check UIFeedbackGenerator.isHapticFeedbackEnabled before triggering. Graceful degradation is required.

5. AHAP file errors silently — Invalid AHAP files fail silently without errors. Test with Xcode's haptic designer and validate file syntax before shipping.

6. Forgetting battery impact — Continuous haptic patterns (progress bars, loading states) drain battery fast. Use haptics for state changes only, not ongoing feedback.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.