---
title: "init(style:view:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiimpactfeedbackgenerator/init(style:view:)"
---

# init(style:view:)

Creates an impact feedback generator with the specified style and view.

## Declaration

```swift
convenience init(style: UIImpactFeedbackGenerator.FeedbackStyle, view: UIView)
```

## See Also

### Initializing the feedback generator

- [UIImpactFeedbackGenerator.FeedbackStyle](uikit/uiimpactfeedbackgenerator/feedbackstyle.md)
