---
title: rect
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextselectionrect/rect
---

# rect

The rectangle that encloses the text selection rectangle’s text range.

## Declaration

```swift
var rect: CGRect { get }
```

## Discussion

Discussion The returned rectangle is in the coordinate system of the text input view that created the receiver.
