init(_:)
Creates a value-type attributed string from a reference type.
Declaration
init(_ nsStr: NSAttributedString)Parameters
- nsStr:
The Nsattributedstring to convert.
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:).