---
title: firstLineRect
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextdragpreviewrenderer/firstlinerect
---

# firstLineRect

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

## Declaration

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

## Discussion

Discussion The first line rectangle contains the first 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)
- [lastLineRect](uikit/uitextdragpreviewrenderer/lastlinerect.md)
- [adjust(firstLineRect:bodyRect:lastLineRect:textOrigin:)](uikit/uitextdragpreviewrenderer/adjust(firstlinerect:bodyrect:lastlinerect:textorigin:).md)
