---
title: isEmpty
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextrange/isempty
---

# isEmpty

Returns whether the text range is empty.

## Declaration

```swift
var isEmpty: Bool { get }
```

## See Also

### Characteristics of the text range

- [location](uikit/nstextrange/location.md)
- [endLocation](uikit/nstextrange/endlocation.md)
