Instance Property

color

Sets the stroke color for the annotation.

Declaration

iOS, Mac Catalyst
@NSCopying var color: UIColor { get set }
macOS
@NSCopying var color: NSColor { get set }

Parameters

color

The stroke color for the annotation.

Discussion

Where this color is used depends on the annotation type.

See Also

Managing Annotation Display Characteristics

var bounds: CGRect

Returns the bounding box for the annotation in page space.

var border: PDFBorder?

Sets the border style for the annotation.

class PDFBorder

An optional border for an annotation, drawn completely within the annotation rectangle.

var hasAppearanceStream: Bool

Returns a Boolean value that indicates whether the annotation has an appearance stream associated with it.