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