Instance Property


A string of attributed text.


@NSCopying var attributedText: NSAttributedString? { get set }


You cannot change the value of this property once drawing begins for a print job. The delegate method printInteractionControllerWillStartJob(_:) is called immediately before the formatting is set for the job.

Assigning a value to this property also replaces the value in the text property with the same string data, albeit without any formatting information.

See Also

Getting and Setting the Text

var text: String?

A string of plain text.