Contents

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 == Character

Parameters

  • elements:

    A character sequence that provides the textual content for the attributed string.

  • attributes:

    Attributes to apply to the textual content.

See Also

Creating an Attributed String