updateFloatingCursor(at:)
Tells the object that the floating cursor moved to a new location.
Declaration
optional func updateFloatingCursor(at point: CGPoint)Parameters
- point:
The new touch point in the underlying view. This point is in the coordinate space of the view in the Textinputview property.
Discussion
UIKit calls this method when the touch location changes for the two-finger pan gesture used to move 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.This method may be called multiple times while the user’s fingers are moving, so your implementation should be fast. If you do not implement this method, UIKit provides visual feedback only when the selection changes.