PDFAttributedText
public class PDFAttributedText : PDFText
Advanced text objects using an attributed stringFoundation.NSAttributedString as the internal structure.
Use this class for advanced text drawing.
For simpler use cases, consider PDFSimpleText.
-
Attributed string which will be drawn in the PDF graphics context
Declaration
Swift
public var text: NSAttributedString -
Creates a new attributed text object with the given
textDeclaration
Swift
public init(text: NSAttributedString)Parameters
textFoundation.NSAttributedStringto be drawn in the document -
Creates a new
PDFAttributedTextwith the same propertiesDeclaration
Swift
override public var copy: PDFText { get }
-
Compares two instances of
PDFAttributedTextfor equalityDeclaration
Swift
override public func isEqual(to other: PDFDocumentObject) -> BoolParameters
lhsOne instance of
PDFAttributedTextrhsAnother instance of
PDFAttributedTextReturn Value
true, iftextequal; otherwisefalse
-
nodoc
Declaration
Swift
override public func hash(into hasher: inout Hasher)
View on GitHub
Install in Dash