Generic Initializer

init(_:including:)

Creates an attributed string from another attributed string, including an attribute scope.

Declaration 宣言

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

Parameters パラメータ

other

An attributed string or attributed substring.

scope

An attribute scope to associate with the attributed string. 属性付き文字列と結びつけられることになるある属性スコープ。

See Also 参照

Creating a Duplicate Attributed String