Contents

init(_:including:)

Creates an attributed string from another attributed string, including an attribute scope that a key path identifies.

Declaration

init<S, T>(_ other: T, including scope: KeyPath<AttributeScopes, S.Type>) where S : AttributeScope, T : AttributedStringProtocol

Parameters

  • other:

    An attributed string or attributed substring.

  • scope:

    An Attributescopes key path that identifies an attribute scope to associate with the attributed string.

See Also

Creating a Duplicate Attributed String