<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSHapticFeedbackPerformer/perform(_:performanceTime:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSHapticFeedbackPerformer(im)performFeedbackPattern:performanceTime:"
  },
  "title" : "perform(_:performanceTime:)"
}
-->

# perform(_:performanceTime:)

Initiates a specific pattern of haptic feedback to the user.

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

## Parameters

`pattern`

A pattern of feedback to be provided to the user. For possible values, see [`NSHapticFeedbackManager.FeedbackPattern`](/documentation/AppKit/NSHapticFeedbackManager/FeedbackPattern).

`performanceTime`

The time when the feedback should be provided to the user. For possible values, see [`NSHapticFeedbackManager.PerformanceTime`](/documentation/AppKit/NSHapticFeedbackManager/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.

> Important:
> Call this method only in response to user-initiated actions. Ideally, visual feedback, such as a highlight or appearance of an alignment guide, should accompany the feedback.

## See Also

[`NSHapticFeedbackManager.PerformanceTime`](/documentation/AppKit/NSHapticFeedbackManager/PerformanceTime)

A time at which to provide haptic feedback to the user.

[`NSHapticFeedbackManager`](/documentation/AppKit/NSHapticFeedbackManager)

An object that provides access to the haptic feedback management attributes on a system with a Force Touch trackpad.

[`NSHapticFeedbackManager.FeedbackPattern`](/documentation/AppKit/NSHapticFeedbackManager/FeedbackPattern)

A pattern of haptic feedback to be provided to the user.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)