Contents

init(_:affinity:granularity:)

Creates a new text selection with the ranges, selection affinity, and granularity you provide.

Declaration

init(_ textRanges: [NSTextRange], affinity: NSTextSelection.Affinity, granularity: NSTextSelection.Granularity)

Parameters

See Also

Creating a text selection