---
title: color
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/color
---

# color

Sets the stroke color for the annotation.

## Declaration

```swift
@NSCopying var color: UIColor { get set }
```

```swift
@NSCopying var color: NSColor { get set }
```

## Parameters

- `color`: The stroke color for the annotation.

## Discussion

Discussion Where this color is used depends on the annotation type.

## See Also

### Managing Annotation Display Characteristics

- [alignment](pdfkit/pdfannotation/alignment.md)
- [bounds](pdfkit/pdfannotation/bounds.md)
- [contents](pdfkit/pdfannotation/contents.md)
- [font](pdfkit/pdfannotation/font.md)
- [fontColor](pdfkit/pdfannotation/fontcolor.md)
- [border](pdfkit/pdfannotation/border.md)
- [PDFBorder](pdfkit/pdfborder.md)
- [isHighlighted](pdfkit/pdfannotation/ishighlighted.md)
- [hasAppearanceStream](pdfkit/pdfannotation/hasappearancestream.md)
