# Haptics

> Haptic feedback: UIImpactFeedbackGenerator, UINotificationFeedbackGenerator, CoreHaptics custom patterns. Use when implementing app features related to haptics.

- Skill: `abdullah4ai/haptics-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add abdullah4ai/haptics-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/abdullah4ai/haptics-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: abdullah4ai (https://skillmd.com/u/abdullah4ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/abdullah4ai/haptics-2

---

# Haptics

HAPTIC FEEDBACK:
- UIImpactFeedbackGenerator(style: .medium).impactOccurred() for simple taps
- UINotificationFeedbackGenerator().notificationOccurred(.success/.warning/.error) for outcomes
- UISelectionFeedbackGenerator().selectionChanged() for selection changes
- CoreHaptics for custom patterns: CHHapticEngine + CHHapticEvent
- Always check CHHapticEngine.capabilitiesForHardware().supportsHaptics
- Prepare generator before use: generator.prepare() for lower latency

