---
title: backgroundColor
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfappearancecharacteristics/backgroundcolor
---

# backgroundColor

The background color of the widget annotation.

## Declaration

```swift
@NSCopying var backgroundColor: UIColor? { get set }
```

```swift
@NSCopying var backgroundColor: NSColor? { get set }
```

## See Also

### Configuring a Widget’s Appearance

- [borderColor](pdfkit/pdfappearancecharacteristics/bordercolor.md)
- [caption](pdfkit/pdfappearancecharacteristics/caption.md)
- [controlType](pdfkit/pdfappearancecharacteristics/controltype.md)
- [downCaption](pdfkit/pdfappearancecharacteristics/downcaption.md)
- [rolloverCaption](pdfkit/pdfappearancecharacteristics/rollovercaption.md)
- [rotation](pdfkit/pdfappearancecharacteristics/rotation.md)
- [appearanceCharacteristicsKeyValues](pdfkit/pdfappearancecharacteristics/appearancecharacteristicskeyvalues.md)
- [PDFAppearanceCharacteristicsKey](pdfkit/pdfappearancecharacteristicskey.md)
