caretRect(for:)
Returns a rectangle in which the system can draw the text-selection caret.
Declaration
func caretRect(for position: UITextPosition) -> CGRectParameters
- position:
The text position corresponding to the caret’s location.
Returns a rectangle in which the system can draw the text-selection caret.
func caretRect(for position: UITextPosition) -> CGRectThe text position corresponding to the caret’s location.