---
title: "scopeBarButtonDividerImage(forLeftSegmentState:rightSegmentState:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uisearchbar/scopebarbuttondividerimage(forleftsegmentstate:rightsegmentstate:)"
---

# scopeBarButtonDividerImage(forLeftSegmentState:rightSegmentState:)

Returns the divider image to use for a given combination of left and right segment states.

## Declaration

```swift
func scopeBarButtonDividerImage(forLeftSegmentState leftState: UIControl.State, rightSegmentState rightState: UIControl.State) -> UIImage?
```

## Parameters

- `leftState`: The state of the left segment for which to provide the divider image. The state may be doc://com.apple.uikit/documentation/UIKit/UIControl/State-swift.struct/normal or doc://com.apple.uikit/documentation/UIKit/UIControl/State-swift.struct/selected.
- `rightState`: The state of the right segment for which to provide the divider image. The state may be doc://com.apple.uikit/documentation/UIKit/UIControl/State-swift.struct/normal or doc://com.apple.uikit/documentation/UIKit/UIControl/State-swift.struct/selected.

## Return Value

Return Value The divider image to use for the combination of leftState and rightState.

## Discussion

Discussion For more details, see setScopeBarButtonDividerImage(_:forLeftSegmentState:rightSegmentState:)

## See Also

### Customizing the scope bar appearance

- [scopeBarBackgroundImage](uikit/uisearchbar/scopebarbackgroundimage.md)
- [scopeBarButtonBackgroundImage(for:)](uikit/uisearchbar/scopebarbuttonbackgroundimage(for:).md)
- [setScopeBarButtonBackgroundImage(_:for:)](uikit/uisearchbar/setscopebarbuttonbackgroundimage(_:for:).md)
- [setScopeBarButtonDividerImage(_:forLeftSegmentState:rightSegmentState:)](uikit/uisearchbar/setscopebarbuttondividerimage(_:forleftsegmentstate:rightsegmentstate:).md)
- [scopeBarButtonTitleTextAttributes(for:)](uikit/uisearchbar/scopebarbuttontitletextattributes(for:).md)
- [setScopeBarButtonTitleTextAttributes(_:for:)](uikit/uisearchbar/setscopebarbuttontitletextattributes(_:for:).md)
