---
title: backgroundColor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableviewrowaction/backgroundcolor
---

# backgroundColor

The background color of the action button.

## Declaration

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

## Discussion

Discussion Use this property to specify the background color for your button. If you don’t specify a value for this property, UIKit assigns a default color based on the value in the style property.

## See Also

### Configuring the action’s appearance

- [style](uikit/uitableviewrowaction/style-swift.property.md)
- [UITableViewRowAction.Style](uikit/uitableviewrowaction/style-swift.enum.md)
- [title](uikit/uitableviewrowaction/title.md)
- [backgroundEffect](uikit/uitableviewrowaction/backgroundeffect.md)
