---
title: backgroundColor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstableviewrowaction/backgroundcolor
---

# backgroundColor

The background color of the action button.

## Declaration

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

## Discussion

Discussion Use this property to specify the background color for your button. If you do not specify a value for this property, AppKit assigns a default color based on the value in the style property. Generally, this color is red for destructive actions and blue for nondestructive actions.

## See Also

### Configuring the Action’s Appearance

- [style](appkit/nstableviewrowaction/style-swift.property.md)
- [title](appkit/nstableviewrowaction/title.md)
