Instance Property

rect

The rectangle that encloses the receiver’s text range.

Declaration

var rect: CGRect { get }

Discussion

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