subscript(_:)

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

Declaration

subscript(bounds: some RangeExpression<AttributedString.Index>) -> AttributedSubstring { get set }