Generic Initializer

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