Contents

text(in:)

Returns the text in the specified range.

Declaration

func text(in range: UITextRange) -> String?

Parameters

  • range:

    A range of text in a document.

Return Value

A substring of a document that falls within the specified range.

See Also

Replacing and returning text