init(events:parameters:)
Constructs a haptic pattern from a series of events and parameters.
Declaration
init(events: [CHHapticEvent], parameters: [CHHapticDynamicParameter]) throwsParameters
- events:
An array of events that make up the haptic pattern.
- parameters:
An array of dynamic parameters that define how the haptic pattern’s parameters change over time.