<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextItemTagAttributeName",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UITextItemTagAttributeName"
  },
  "title" : "UITextItemTagAttributeName"
}
-->

# UITextItemTagAttributeName

The name of a custom tag associated with a text item.

```
extern NSAttributedStringKey const UITextItemTagAttributeName;
```

## Overview

The value of this attribute is an <doc://com.apple.documentation/documentation/Foundation/NSString> object with the tag name of a [`UITextItem`](/documentation/UIKit/UITextItem) object.

---

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)