# Set Up User Feedback | Sentry for macOS

### [User Feedback API](https://docs.sentry.io/platforms/apple/guides/macos/user-feedback.md#user-feedback-api)

The User Feedback API allows you to collect user feedback while using your own UI components. You can submit feedback directly using the `SentrySDK.capture(feedback:)` method:

```swift
SentrySDK.capture(feedback: .init(
    message: "I encountered a bug while using the app.",
    name: "John Doe",
    email: "john.doe@example.com",
    source: .custom,
    screenshot: somePngImageData // optional
))
```
