---
title: "User Feedback"
description: "Learn how to enable User Feedback in your Cocoa app."
url: https://docs.sentry.io/platforms/apple/guides/visionos/user-feedback/
---

# Set Up User Feedback | Sentry for visionOS

User Feedback lets you collect feedback from anywhere in your app without waiting for an error event. On supported platforms, you can use Sentry's managed feedback form, or you can collect feedback in your own UI and send it with the User Feedback API.

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

Use the User Feedback API when you collect feedback with your own UI. The SDK sends the feedback to Sentry, so you don't need to build the HTTP request yourself.

You can optionally pass an `associatedEventId` to connect feedback to an error event.

**Swift**

```swift
import Sentry

let feedback = SentryFeedback(
    message: "The settings screen is confusing.",
    name: "Ada",
    email: "ada@example.com",
    source: .custom,
    associatedEventId: nil,
    attachments: nil
)

SentrySDK.capture(feedback: feedback)
```

**Objective-C**

```objc
@import SentryObjC;

[SentryObjCSDK captureFeedbackWithMessage:@"The settings screen is confusing."
                                     name:@"Ada"
                                    email:@"ada@example.com"
                                   source:SentryObjCFeedbackSourceCustom
                        associatedEventId:nil
                              attachments:nil];
```

## Pages in this section

- [Configure User Feedback](https://docs.sentry.io/platforms/apple/guides/visionos/user-feedback/configuration.md)
