Initializer

init(_:)

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

Declaration 宣言

init(_ container: AttributeContainer)
Available when Key is NSAttributedString.Key and Value is Any. KeyNSAttributedString.KeyであるそしてValueAnyである時に利用可能です。

Parameters パラメータ

container

The attribute container with the keys and values to populate this dictionary with. この辞書にそれらを入れることになるキーと値それらを備えた属性コンテナ。

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 a Dictionary from an Attribute Container 辞書を属性コンテナから作成する