---
title: textLastRect
framework: browserenginekit
role: symbol
role_heading: Instance Property
path: browserenginekit/betextinput/textlastrect
---

# textLastRect

Returns a rect representing the bounds of the last line of marked text, if marked text is set.

## Declaration

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

## Discussion

Discussion Otherwise, this returns a rect representing the bounds of the last word at or before the insertion point. This may have the same value of textFirstRect, but can differ in cases such as a word that spans two lines.
