Initializer

init(_:)

Creates a value-type attributed string from a reference type.

Declaration 宣言

init(_ nsStr: NSAttributedString)

Parameters パラメータ

nsStr

The NSAttributedString to convert. このNSAttributedStringを変換することになります。

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:) or init(_:including:).

See Also 参照

Creating an Attributed String from a Reference Type 属性付き文字列を参照型から作成する