Contents

beginFloatingCursor(at:)

Tells the object when the gesture that the system uses to manipulate the cursor begins.

Declaration

optional func beginFloatingCursor(at point: CGPoint)

Parameters

  • point:

    The point at which the gesture occurred in your view. This point is in the coordinate space of the view in the Textinputview property.

Discussion

UIKit calls this method when the user begins to perform a two-finger pan gesture to pick up the cursor. You can use this method to update the visual state of your text view. For example, you might use this method to display custom visual feedback for cursor movements.

If you do not implement this method, UIKit provides visual feedback only when the selection changes.

See Also

Managing the floating cursor