Initializer

init(_:)

Creates an attribute container from a dictionary, using default attribute scopes.

Declaration 宣言

init(_ dictionary: [NSAttributedString.Key : Any])

Parameters パラメータ

dictionary

A dictionary of attribute keys and their values. 属性キーおよびそれらの値からなる辞書。

Discussion 議論

This initializer includes all attribute scopes defined by the SDK, such as AttributeScopes.FoundationAttributes, AttributeScopes.SwiftUIAttributes, and AttributeScopes.AccessibilityAttributes. To use third-party attribute scopes, use the initializers init(_:including:) and init(_:including:).

See Also 参照

Creating an Attribute Container 属性コンテナを作成する