init(_:attributes:)
Creates an attributed string from a character sequence and an attribute container.
Declaration
init<S>(_ elements: S, attributes: AttributeContainer = .init()) where S : Sequence, S.Element == CharacterParameters
- elements:
A character sequence that provides the textual content for the attributed string.
- attributes:
Attributes to apply to the textual content.