---
title: UINotificationFeedbackGenerator
framework: uikit
role: symbol
role_heading: Class
path: uikit/uinotificationfeedbackgenerator
---

# UINotificationFeedbackGenerator

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

## Declaration

```swift
@MainActor class UINotificationFeedbackGenerator
```

## Overview

Overview Use notification feedback to communicate that a task or action succeeded, failed, or produced a warning of some kind. For more information, read Playing haptic feedback in your app.

## Topics

### Producing notification feedback

- [notificationOccurred(_:)](uikit/uinotificationfeedbackgenerator/notificationoccurred(_:).md)
- [notificationOccurred(_:at:)](uikit/uinotificationfeedbackgenerator/notificationoccurred(_:at:).md)
- [UINotificationFeedbackGenerator.FeedbackType](uikit/uinotificationfeedbackgenerator/feedbacktype.md)

## Relationships

### Inherits From

- [UIFeedbackGenerator](uikit/uifeedbackgenerator.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIInteraction](uikit/uiinteraction.md)

## See Also

### Haptic feedback

- [Playing haptic feedback in your app](applepencil/playing-haptic-feedback-in-your-app.md)
- [UIFeedbackGenerator](uikit/uifeedbackgenerator.md)
- [UIImpactFeedbackGenerator](uikit/uiimpactfeedbackgenerator.md)
- [UISelectionFeedbackGenerator](uikit/uiselectionfeedbackgenerator.md)
- [UICanvasFeedbackGenerator](uikit/uicanvasfeedbackgenerator.md)
