---
title: color
framework: pdfkit
role: symbol
role_heading: Type Property
path: pdfkit/pdfannotationkey/color
---

# color

An array of floats or a color object that specifies the annotation’s color.

## Declaration

```swift
static let color: PDFAnnotationKey
```

## Discussion

Discussion Annotations use the color for the following: The background of the annotation’s icon when it’s in a closed state The title bar of the annotation’s pop-up window The border of a link annotation The stroke of a circle, square, or line shape annotation

## See Also

### Configuring Annotation Appearance

- [appearanceDictionary](pdfkit/pdfannotationkey/appearancedictionary.md)
- [appearanceState](pdfkit/pdfannotationkey/appearancestate.md)
- [border](pdfkit/pdfannotationkey/border.md)
- [borderStyle](pdfkit/pdfannotationkey/borderstyle.md)
- [defaultAppearance](pdfkit/pdfannotationkey/defaultappearance.md)
- [highlightingMode](pdfkit/pdfannotationkey/highlightingmode.md)
- [PDFAnnotationHighlightingMode](pdfkit/pdfannotationhighlightingmode.md)
- [iconName](pdfkit/pdfannotationkey/iconname.md)
- [interiorColor](pdfkit/pdfannotationkey/interiorcolor.md)
- [quadding](pdfkit/pdfannotationkey/quadding.md)
