Contents

selectPosition(at:completionHandler:)

Sets the selection caret to the given point.

Declaration

func selectPosition(at point: CGPoint, completionHandler: @escaping  @Sendable () -> Void)
func selectPosition(at point: CGPoint) async

Parameters

  • point:

    The caret’s new location in the text view.

  • completionHandler:

    A closure that you call when the text view handles the gesture.

Mentioned in

See Also

Managing selection