<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UINotificationFeedbackGenerator",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UINotificationFeedbackGenerator"
  },
  "title" : "UINotificationFeedbackGenerator"
}
-->

# UINotificationFeedbackGenerator

A concrete feedback generator subclass that creates haptics to communicate successes, failures, and warnings.

```
@MainActor class UINotificationFeedbackGenerator
```

## Overview

Use notification feedback to communicate that a task or action succeeded, failed, or produced a warning of some kind.

For more information, read <doc://com.apple.documentation/documentation/ApplePencil/playing-haptic-feedback-in-your-app>.

## Topics

### Producing notification feedback

[`notificationOccurred(_:)`](/documentation/UIKit/UINotificationFeedbackGenerator/notificationOccurred(_:))

Triggers notification feedback.

[`notificationOccurred(_:at:)`](/documentation/UIKit/UINotificationFeedbackGenerator/notificationOccurred(_:at:))

Triggers notification feedback at the specified location.

[`UINotificationFeedbackGenerator.FeedbackType`](/documentation/UIKit/UINotificationFeedbackGenerator/FeedbackType)

The type of notification that a notification feedback generator object generates.



---

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)