<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNTextInputNotificationResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNTextInputNotificationResponse"
  },
  "title" : "UNTextInputNotificationResponse"
}
-->

# UNTextInputNotificationResponse

The user’s response to an actionable notification, including any custom text that the user typed or dictated.

```
class UNTextInputNotificationResponse
```

## Overview

The system delivers a [`UNTextInputNotificationResponse`](/documentation/UserNotifications/UNTextInputNotificationResponse) object to your app so that you can process user-provided text content. When defining your categories, you can specify an [`UNTextInputNotificationAction`](/documentation/UserNotifications/UNTextInputNotificationAction) object instead of an [`UNNotificationAction`](/documentation/UserNotifications/UNNotificationAction) object for your action. If you do, the system creates an [`UNTextInputNotificationResponse`](/documentation/UserNotifications/UNTextInputNotificationResponse) object when the user selects the accompanying action, and it fills the [`userText`](/documentation/UserNotifications/UNTextInputNotificationResponse/userText) property with any user-entered text.

You don’t create [`UNTextInputNotificationResponse`](/documentation/UserNotifications/UNTextInputNotificationResponse) objects yourself. Instead, the shared user notification center object creates them and delivers them to the [`userNotificationCenter(_:didReceive:withCompletionHandler:)`](/documentation/UserNotifications/UNUserNotificationCenterDelegate/userNotificationCenter(_:didReceive:withCompletionHandler:)) method of its delegate object. Use that method to extract any needed information from the response object and take appropriate action.

For more information about responding to actions, see [Handling notifications and notification-related actions](/documentation/UserNotifications/handling-notifications-and-notification-related-actions).

## Topics

### Getting the Text Response

[`userText`](/documentation/UserNotifications/UNTextInputNotificationResponse/userText)

The text response provided by the user.



---

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)