---
title: "perform(_:performanceTime:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nshapticfeedbackperformer/perform(_:performancetime:)"
---

# perform(_:performanceTime:)

Initiates a specific pattern of haptic feedback to the user.

## Declaration

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

## Parameters

- `pattern`: A pattern of feedback to be provided to the user. For possible values, see doc://com.apple.appkit/documentation/AppKit/NSHapticFeedbackManager/FeedbackPattern.
- `performanceTime`: The time when the feedback should be provided to the user. For possible values, see doc://com.apple.appkit/documentation/AppKit/NSHapticFeedbackManager/PerformanceTime.

## Discussion

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

### Related Documentation

- [NSHapticFeedbackManager.PerformanceTime](appkit/nshapticfeedbackmanager/performancetime.md)
- [NSHapticFeedbackManager](appkit/nshapticfeedbackmanager.md)
- [NSHapticFeedbackManager.FeedbackPattern](appkit/nshapticfeedbackmanager/feedbackpattern.md)
