Contents

caretRect(for:)

Returns a rectangle in which the system can draw the text-selection caret.

Declaration

func caretRect(for position: UITextPosition) -> CGRect

Parameters

  • position:

    The text position corresponding to the caret’s location.

Mentioned in