Contents

characterRange(at:)

Returns the character or range of characters that is at a specified point in a document.

Declaration

func characterRange(at point: CGPoint) -> UITextRange?

Parameters

  • point:

    A point in the view that is drawing a document’s text.

Return Value

An object representing a range that encloses a character (or characters) at point.

See Also

Working with geometry and hit-testing