Contents

init(_:attributes:)

Creates an attributed string from a string and an attribute container.

Declaration

init(_ string: String, attributes: AttributeContainer = .init())

Parameters

  • string:

    A string to add attributes to.

  • attributes:

    Attributes to apply to string.

See Also

Creating an Attributed String