backgroundImage(for:barMetrics:)
Returns the background image for a given state and bar metrics.
Declaration
func backgroundImage(for state: UIControl.State, barMetrics: UIBarMetrics) -> UIImage?Parameters
- state:
A control state.
- barMetrics:
Bar metrics.
Return Value
The background image for state and barMetrics.
Discussion
For more details, see setBackgroundImage(_:for:barMetrics:).
See Also
Customizing appearance
selectedSegmentTintColorsetBackgroundImage(_:for:barMetrics:)contentPositionAdjustment(forSegmentType:barMetrics:)setContentPositionAdjustment(_:forSegmentType:barMetrics:)UISegmentedControl.SegmentdividerImage(forLeftSegmentState:rightSegmentState:barMetrics:)setDividerImage(_:forLeftSegmentState:rightSegmentState:barMetrics:)titleTextAttributes(for:)setTitleTextAttributes(_:for:)