---
title: "setDividerImage(_:forLeftSegmentState:rightSegmentState:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uistepper/setdividerimage(_:forleftsegmentstate:rightsegmentstate:)"
---

# setDividerImage(_:forLeftSegmentState:rightSegmentState:)

Sets the image to use for the given combination of left and right states.

## Declaration

```swift
func setDividerImage(_ image: UIImage?, forLeftSegmentState leftState: UIControl.State, rightSegmentState rightState: UIControl.State)
```

## Parameters

- `image`: The divider image to use.
- `leftState`: The state of the left side of the control.
- `rightState`: The state of the right side of the control.

## See Also

### Customizing appearance

- [backgroundImage(for:)](uikit/uistepper/backgroundimage(for:).md)
- [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)
- [incrementImage(for:)](uikit/uistepper/incrementimage(for:).md)
- [setIncrementImage(_:for:)](uikit/uistepper/setincrementimage(_:for:).md)
