textSelection(_:)
Creates a subselection of the current text selection with the ranges you specify.
Declaration
func textSelection(_ textRanges: [NSTextRange]) -> NSTextSelectionParameters
- textRanges:
An array of text ranges.
Return Value
A new NSTextSelection.