Contents

makePlayer(with:)

Creates a standard haptic pattern player from a haptic pattern.

Declaration

func makePlayer(with pattern: CHHapticPattern) throws -> any CHHapticPatternPlayer

Parameters

  • pattern:

    The haptic pattern you’d like the player to play.

Mentioned in

Return Value

A new pattern player instance.

See Also

Creating Haptic Pattern Players