subscript(_:)

Returns a substring of the attributed string using a range to indicate the substring bounds.

Declaration

subscript<R>(bounds: R) -> AttributedSubstring where R : RangeExpression, R.Bound == AttributedString.Index { get }