move(to:withCaretRect:trackingCaret:)
Moves the loupe to the specified point in the session’s associated view.
Declaration
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 Cgrectnull if the view doesn’t contain a selection or the caret isn’t visible.
- tracksCaret:
trueif you want the loupe to track the movements of the caret. If you specifytrue, provide a valid rectangle in thecaretRectparameter. Specifyfalseto continue tracking the location of touch events.
Mentioned in
Discussion
Call this method repeatedly from a gesture recognizer when the touch location changes.