Contents

init(events:parameterCurves:)

Constructs a haptic pattern from a series of events and parameter curves.

Declaration

init(events: [CHHapticEvent], parameterCurves: [CHHapticParameterCurve]) throws

Parameters

  • 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.

See Also

Creating a Haptic Pattern