<!--
{
  "availability" : [
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceButton/setBackgroundImage(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceButton(im)setBackgroundImage:"
  },
  "title" : "setBackgroundImage(_:)"
}
-->

# setBackgroundImage(_:)

Sets the button’s background image to the specified image.

```
func setBackgroundImage(_ image: UIImage?)
```

## Parameters

`image`

The image to be displayed behind the button’s title text. The image is displayed behind the button’s title text. Specifying `nil` removes the existing image. You may specify an image object that contains multiple images running as an animation. The image is scaled as needed to fill the button’s content area.

## Discussion

If `image` is a template image, the button tints that image using the current background color. The button does not use the background color for full-color images.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)