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

# dividerImage(forLeftSegmentState:rightSegmentState:)

Returns the divider image for the given combination of left and right states.

## Declaration

```swift
func dividerImage(forLeftSegmentState state: UIControl.State, rightSegmentState state: UIControl.State) -> UIImage?
```

## Parameters

- `state`: The state of the left side of the control.
- `state`: The state of the right side of the control.

## Return Value

Return Value The image used for the specified combination of left and right states.

## 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)
- [setDividerImage(_:forLeftSegmentState:rightSegmentState:)](uikit/uistepper/setdividerimage(_:forleftsegmentstate:rightsegmentstate:).md)
- [incrementImage(for:)](uikit/uistepper/incrementimage(for:).md)
- [setIncrementImage(_:for:)](uikit/uistepper/setincrementimage(_:for:).md)
