---
title: textualRange
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchtextfield/textualrange
---

# textualRange

The range of the field’s text content.

## Declaration

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

## Discussion

Discussion Both tokens and text are included in the range from beginningOfDocument to endOfDocument. This property provides convenient access to just the text.

## See Also

### Converting text into tokens

- [replaceTextualPortion(of:with:at:)](uikit/uisearchtextfield/replacetextualportion(of:with:at:).md)
