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

# impactOccurred()

Triggers impact feedback.

```
func impactOccurred()
```

## Discussion

This method tells the generator that an impact has occurred. In response, the generator may play the appropriate haptics based on the [`UIImpactFeedbackGenerator.FeedbackStyle`](/documentation/UIKit/UIImpactFeedbackGenerator/FeedbackStyle) value passed to the generator’s [`init(style:)`](/documentation/UIKit/UIImpactFeedbackGenerator/init(style:)) initializer.

For information on setting up a feedback generator, see the [`UIFeedbackGenerator`](/documentation/UIKit/UIFeedbackGenerator) class.

## See Also

[`-  prepare`](/documentation/UIKit/UIFeedbackGenerator/prepare())

Prepares the generator to trigger feedback.



---

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)