Contents

init(_:)

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

Declaration

init(_ nsStr: NSAttributedString)

Parameters

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