<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISearchTextField/textualRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISearchTextField(py)textualRange"
  },
  "title" : "textualRange"
}
-->

# textualRange

The range of the field’s text content.

```
var textualRange: UITextRange { get }
```

## Discussion

Both tokens and text are included in the range from [`beginningOfDocument`](/documentation/UIKit/UITextInput/beginningOfDocument) to [`endOfDocument`](/documentation/UIKit/UITextInput/endOfDocument). This property provides convenient access to just the text.

---

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)