<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIStepper/setDividerImage(_:forLeftSegmentState:rightSegmentState:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIStepper(im)setDividerImage:forLeftSegmentState:rightSegmentState:"
  },
  "title" : "setDividerImage(_:forLeftSegmentState:rightSegmentState:)"
}
-->

# setDividerImage(_:forLeftSegmentState:rightSegmentState:)

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

```
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.

---

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)