---
title: lastLineRect
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextdragpreviewrenderer/lastlinerect
---

# lastLineRect

The bounding rectangle of the last line of text in the drag preview.

## Declaration

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

## Discussion

Discussion The last line rectangle contains the last line of text in the drag preview that may be a partial line. This property can be a zero rectangle. The initial value is also not calculated until the first time it’s used.

## See Also

### Getting and setting bounding rectangles

- [bodyRect](uikit/uitextdragpreviewrenderer/bodyrect.md)
- [firstLineRect](uikit/uitextdragpreviewrenderer/firstlinerect.md)
- [adjust(firstLineRect:bodyRect:lastLineRect:textOrigin:)](uikit/uitextdragpreviewrenderer/adjust(firstlinerect:bodyrect:lastlinerect:textorigin:).md)
