UINotificationFeedbackGenerator
A concrete feedback generator subclass that creates haptics to communicate successes, failures, and warnings.
Declaration
@MainActor class UINotificationFeedbackGeneratorOverview
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.