Contents

init(events:parameters:)

Constructs a haptic pattern from a series of events and parameters.

Declaration

init(events: [CHHapticEvent], parameters: [CHHapticDynamicParameter]) throws

Parameters

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

See Also

Creating a Haptic Pattern