Instance Property

loopEnabled

A Boolean that determines whether the haptic repeats itself on completion.

Required.

Declaration

var loopEnabled: Bool { get set }

See Also

Setting Playback Properties

var loopEnd: TimeInterval

The time at which to end looping haptic playback.

Required.

var playbackRate: Float

The playback rate of the haptic player.

Required.

var completionHandler: CHHapticAdvancedPatternPlayerCompletionHandler

A completion block that runs after the haptic finishes playing.

Required.

typealias CHHapticAdvancedPatternPlayerCompletionHandler

A typealias for the completion handler to run after a haptic finishes playback.