---
title: "setBackgroundColor(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacebutton/setbackgroundcolor(_:)"
---

# setBackgroundColor(_:)

Sets the background color of the button.

## Declaration

```swift
func setBackgroundColor(_ color: UIColor?)
```

## Parameters

- `color`: The fill color to use for the button’s background.

## Discussion

Discussion If you specify both a background color and a full-color background image, only the image is displayed. If the image is a template image instead, the button tints the image using the background color.

## See Also

### Setting the Button Background

- [setBackgroundImage(_:)](watchkit/wkinterfacebutton/setbackgroundimage(_:).md)
- [setBackgroundImageData(_:)](watchkit/wkinterfacebutton/setbackgroundimagedata(_:).md)
- [setBackgroundImageNamed(_:)](watchkit/wkinterfacebutton/setbackgroundimagenamed(_:).md)
