Contents

textSelection(_:)

Creates a subselection of the current text selection with the ranges you specify.

Declaration

func textSelection(_ textRanges: [NSTextRange]) -> NSTextSelection

Parameters

  • textRanges:

    An array of text ranges.

Return Value

A new NSTextSelection.