An object representing a haptic waveform.
- iOS 13.0+
- Mac Catalyst 13.0+
- Core Haptics
A haptic pattern represents the waveform of a haptic through a hierarchical set of key-value pairs, starting at the topmost level with a
CHHaptic key. This key marks the beginning of an array of events and
parameter definitions. Each event has an associated time that indicates when the system will deliver the event to the haptic engine.
These key-value pairs represent not only events constituting the pattern, but also individual parameters of each event, which are characteristics of the haptic, such as sharpness and intensity. More complicated patterns also contain key-value pairs for parameter curves, which you can use to modulate parameters over time.