textRange(from:to:)
Returns the range between two text positions.
Declaration
func textRange(from fromPosition: UITextPosition, to toPosition: UITextPosition) -> UITextRange?Parameters
- fromPosition:
An object that represents a location in a document.
- toPosition:
An object that represents another location in a document.
Return Value
An object that represents the range between fromPosition and toPosition.