Contents

subscript(_:)

Obtain the discontiguous substring of a selection.

Declaration

subscript(selection: AttributedTextSelection) -> DiscontiguousAttributedSubstring { get }

Overview

In the case of an insertion point, this substring is empty. Otherwise, the substring contains all selected characters.