Contents

init(attachment:)

Creates an attributed string with an attachment.

Declaration

init(attachment: NSTextAttachment)

Parameters

  • attachment:

    The attrachment to place in the string.

Return Value

An attributed string containing the attachment.

Discussion

This is a convenience method for creating an attributed string containing an attachment using character as the base character.

See Also

Creating a string with an attachment