---
title: "backgroundImage(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uistepper/backgroundimage(for:)"
---

# backgroundImage(for:)

Returns the background image associated with the specified control state.

## Declaration

```swift
func backgroundImage(for state: UIControl.State) -> UIImage?
```

## Parameters

- `state`: The control state in which the image is displayed.

## Return Value

Return Value The background image used by the control when it is in the specified state.

## See Also

### Customizing appearance

- [setBackgroundImage(_:for:)](uikit/uistepper/setbackgroundimage(_:for:).md)
- [decrementImage(for:)](uikit/uistepper/decrementimage(for:).md)
- [setDecrementImage(_:for:)](uikit/uistepper/setdecrementimage(_:for:).md)
- [dividerImage(forLeftSegmentState:rightSegmentState:)](uikit/uistepper/dividerimage(forleftsegmentstate:rightsegmentstate:).md)
- [setDividerImage(_:forLeftSegmentState:rightSegmentState:)](uikit/uistepper/setdividerimage(_:forleftsegmentstate:rightsegmentstate:).md)
- [incrementImage(for:)](uikit/uistepper/incrementimage(for:).md)
- [setIncrementImage(_:for:)](uikit/uistepper/setincrementimage(_:for:).md)
