<!--
{
  "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/UITextItemContentType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITextItemContentType"
  },
  "title" : "UITextItemContentType"
}
-->

# UITextItemContentType

Constants that describe and capture the type of content a text item represents along with a specific related value.

```
enum UITextItemContentType : NSInteger;
```

## Topics

### Getting the content type

[`UITextItemContentTypeLink`](/documentation/UIKit/UITextItemContentType/UITextItemContentTypeLink)

A link to a resource, such as an item on a remote server or the path to a local file.

[`UITextItemContentTypeTag`](/documentation/UIKit/UITextItemContentType/UITextItemContentTypeTag)

A string that represents a custom tag for a topic.

[`UITextItemContentTypeTextAttachment`](/documentation/UIKit/UITextItemContentType/UITextItemContentTypeTextAttachment)

A text attachment, such as an image or view.



---

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)