Core Haptics
Compose and play haptic patterns to customize your iOS app’s haptic feedback.
Overview
Core Haptics lets you add customized haptic and audio feedback to your app. Use haptics to engage users physically, with tactile and audio feedback that gets attention and reinforces actions. Some system-provided interface elements—like pickers, switches, and sliders—automatically provide haptic feedback as users interact with them. With Core Haptics, you extend this functionality by composing and combining haptics beyond the default patterns.
Your app can play custom haptic patterns crafted from basic building blocks called haptic events (CHHapticEvent). Events can be transient, like the feedback you get from toggling a switch, or continuous, like the vibration or sound from a ringtone. You can use transient and continuous patterns independently, or build your pattern from precise combinations of the two. Another type of haptic event allows you to play customized audio content as part of your pattern.
Topics
Essentials
Preparing your app to play hapticsPlaying a single-tap haptic patternCHHapticEngineCHHapticPatternCHHapticPatternPlayerCHHapticAdvancedPatternPlayer
Programmatic haptics
Delivering Rich App Experiences with HapticsPlaying Collision-Based Haptic PatternsUpdating Continuous and Transient Haptic Parameters in Real TimeCHHapticEventCHHapticEventParameterCHHapticDynamicParameterCHHapticParameterCurve