<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextDragPreviewRenderer/adjust(firstLineRect:bodyRect:lastLineRect:textOrigin:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITextDragPreviewRenderer(im)adjustFirstLineRect:bodyRect:lastLineRect:textOrigin:"
  },
  "title" : "adjust(firstLineRect:bodyRect:lastLineRect:textOrigin:)"
}
-->

# adjust(firstLineRect:bodyRect:lastLineRect:textOrigin:)

Adjusts the size and origin of the bounding rectangles during a text drag operation.

```
func adjust(firstLineRect: UnsafeMutablePointer<CGRect>, bodyRect: UnsafeMutablePointer<CGRect>, lastLineRect: UnsafeMutablePointer<CGRect>, textOrigin origin: CGPoint)
```

## Parameters

`firstLineRect`

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

`bodyRect`

The bounding rectangle for the text in the middle of the drag preview that doesn’t include the first and last line.

`lastLineRect`

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

`origin`

The origin of the text preview.

## Discussion

This method does nothing by default. Subclasses may override this method to change the rectangle calculations; for example, in order to enlarge the rectangles by a few points. If you adjust the rectangles, the drag preview changes accordingly.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)