Contents

backgroundImage(for:style:barMetrics:)

Returns the background image for the specified state, style, and metrics.

Declaration

func backgroundImage(for state: UIControl.State, style: UIBarButtonItem.Style, barMetrics: UIBarMetrics) -> UIImage?

Parameters

  • state:

    The bar button state.

  • style:

    The bar button style.

  • barMetrics:

    The bar button metrics.

Return Value

The background image associated with the specified state, style, and metrics.

See Also

Customizing the background