<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextSearchDocumentIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UITextSearchDocumentIdentifier"
  },
  "title" : "UITextSearchDocumentIdentifier"
}
-->

# UITextSearchDocumentIdentifier

A string that uniquely identifies a specific document when searching for matching text across multiple documents.

```
typedef id<NSCopying,NSObject> UITextSearchDocumentIdentifier;
```

## Discussion

The [`UITextSearching`](/documentation/UIKit/UITextSearching-53wjq) and [`UITextSearchAggregator`](/documentation/UIKit/UITextSearchAggregator-swift.struct) protocols use this type to distinguish matches in a specific document from text in other documents with the same range.

---

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)