Contents

perform(_:performanceTime:)

Initiates a specific pattern of haptic feedback to the user.

Declaration

func perform(_ pattern: NSHapticFeedbackManager.FeedbackPattern, performanceTime: NSHapticFeedbackManager.PerformanceTime)

Parameters

  • pattern:

    A pattern of feedback to be provided to the user. For possible values, see Feedbackpattern.

  • performanceTime:

    The time when the feedback should be provided to the user. For possible values, see Performancetime.

Discussion

In some cases, the system may override a call to this method. For example, a Force Touch trackpad won’t provide haptic feedback if the user isn’t touching the trackpad.

See Also

Related Documentation