---
title: "move(to:withCaretRect:trackingCaret:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextloupesession/move(to:withcaretrect:trackingcaret:)"
---

# move(to:withCaretRect:trackingCaret:)

Moves the loupe to the specified point in the session’s associated view.

## Declaration

```swift
func move(to point: CGPoint, withCaretRect caretRect: CGRect, trackingCaret tracksCaret: Bool)
```

## Parameters

- `point`: The new location you want to magnify with the loupe. When creating the loupe with a gesture recognizer, specify the location of the gesture.
- `caretRect`: The current position of the caret handle. Specify doc://com.apple.documentation/documentation/CoreGraphics/CGRectNull if the view doesn’t contain a selection or the caret isn’t visible.
- `tracksCaret`: true if you want the loupe to track the movements of the caret. If you specify true, provide a valid rectangle in the caretRect parameter. Specify false to continue tracking the location of touch events.

## Mentioned in

Adopting system selection UI in custom text views

## Discussion

Discussion Call this method repeatedly from a gesture recognizer when the touch location changes.

## See Also

### Updating the loupe during the session

- [invalidate()](uikit/uitextloupesession/invalidate().md)
