haptics

Provides UI and RN haptic feedback for common app events and custom scenarios.

223|21|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill haptics-johnrogers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: haptics
Source: https://github.com/johnrogers/claude-swift-engineering/tree/main/plugins/swift-engineering/skills/haptics
Command: npx skills add https://github.com/johnrogers/claude-swift-engineering --skill haptics-johnrogers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Haptics provide tactile confirmation of user actions and system events, enriching interaction clarity and perceived responsiveness on Apple platforms.

Core Features & Use Cases

  • Supports simple haptics via UIFeedbackGenerator (UIImpactFeedbackGenerator, UISelectionFeedbackGenerator, UINotificationFeedbackGenerator) for quick, accessible feedback.
  • Enables custom patterns with Core Haptics (CHHapticEngine/CHHapticPattern) for richer, brand-aligned experiences.
  • Applies to confirmations (success, purchases), errors, warnings, and interactions that benefit from tactile guidance across iOS devices.

Quick Start

Implement basic haptic feedback in a Swift app using UIFeedbackGenerator and optionally extend with Core Haptics for advanced patterns.

Frequently Asked Questions about haptics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add haptic feedback to iOS app buttons and toggles in Swift?

To add haptic feedback to iOS apps, use UIFeedbackGenerator subclasses like UIImpactFeedbackGenerator and UISelectionFeedbackGenerator for immediate tactile responses on button presses and toggles. It delivers quick, accessible feedback without complex setup.

What is the difference between UIFeedbackGenerator and Core Haptics for iOS interactions?

UIFeedbackGenerator provides simple, predefined haptic feedback for standard interactions, whereas Core Haptics (CHHapticEngine) enables custom, timed patterns for richer, brand-aligned experiences. Core Haptics allows precise parameter control for advanced tactile sequences beyond basic UI events.

Can I use Core Haptics to sync custom haptic patterns with audio and visual cues?

Yes, Core Haptics supports timed patterns that enforce causality and harmony with visual and audio cues. You can design advanced AHAP patterns using CHHapticEngine to ensure precise synchronization between tactile, visual, and audio feedback across iOS devices.

When should I use haptic feedback for iOS app confirmations and errors?

Use haptic feedback for confirmations like successful purchases, or to signal errors and warnings, providing clear tactile guidance. It enriches interaction clarity and perceived responsiveness when users need immediate confirmation of system events or actions.

Does iOS haptic feedback require specific APIs for immediate and timed patterns?

Yes, implementing haptic feedback requires UIFeedbackGenerator APIs for immediate patterns and CHHapticEngine APIs for timed patterns. The approach enforces causality and harmony with visual and audio cues to deliver appropriate tactile guidance across iOS devices.