<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryNotifications",
  "identifier" : "/documentation/AccessoryNotifications/NotificationResponse/userText",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Accessory Notifications"
    ],
    "preciseIdentifier" : "s:22AccessoryNotifications20NotificationResponseV8userTextSSSgvp"
  },
  "title" : "userText"
}
-->

# userText

A text string that a person provides in response to the notification.

```
var userText: String?
```

## Discussion

This property contains text for notifications that support the [`AccessoryNotification.Action.ActionType.textInput(placeholder:)`](/documentation/AccessoryNotifications/AccessoryNotification/Action/ActionType/textInput(placeholder:)) action type.

---

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)