Contents

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