corehaptics

Locate and understand Core Haptics APIs for engine setup and pattern creation.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/annurdien/skills --skill corehaptics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: corehaptics
Source: https://github.com/annurdien/skills/tree/main/corehaptics
Command: npx skills add https://github.com/annurdien/skills --skill corehaptics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Core Haptics API reference and guidance for querying CHHapticEngine, haptic patterns, and tactile feedback.

Core Features & Use Cases

  • Provides quick access to CHHapticEngine basics, pattern references, and device capabilities.
  • Use cases include learning how to start, stop, and schedule haptic playback and exploring CHHapticPattern and CHHapticEvent structures.
  • Example: a developer retrieving engine status and inspecting available pattern keys for a new app.

Quick Start

Summarize how CHHapticEngine is initialized and used to play a pattern.

Frequently Asked Questions about corehaptics

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

FAQPage Schema
How do I start and stop haptic playback using CHHapticEngine in Swift?

To control haptic playback in Swift, you initialize the CHHapticEngine and use its methods to start and stop the engine. You can then schedule CHHapticPattern objects for precise tactile feedback delivery on Apple platforms.

What is a CHHapticPattern and how do I create one for custom tactile feedback?

A CHHapticPattern is a structure that defines a sequence of haptic events for custom tactile feedback. You create a pattern by defining CHHapticEvent structures and assembling them into a pattern dictionary using available pattern keys.

How do I query device capabilities before playing haptics on Apple platforms?

You query device capabilities for Core Haptics by checking the CHHapticEngine properties. This ensures the device supports the required haptic hardware before you attempt to initialize the engine and schedule complex haptic patterns.

Can I use Core Haptics to schedule precise tactile feedback events in my iOS app?

Yes, you can use Core Haptics to schedule precise tactile feedback events in an iOS app. The CHHapticEngine allows you to schedule CHHapticEvent instances dynamically, controlling the exact timing and intensity of haptic playback.

What are the limitations of using Core Haptics APIs for tactile feedback?

Limitations of Core Haptics APIs include dependency on device hardware capabilities and strict engine lifecycle management. If a device lacks a compatible haptic engine, pattern playback will fail, requiring you to query capabilities before scheduling.