Contents

backButtonBackgroundImage(for:barMetrics:)

Returns the back button background image for a specified control state and bar metrics.

Declaration

func backButtonBackgroundImage(for state: UIControl.State, barMetrics: UIBarMetrics) -> UIImage?

Parameters

  • state:

    A control state.

  • barMetrics:

    Bar metrics.

Return Value

The back button background image for state and barMetrics.

Discussion

This modifier applies only to navigation bar back buttons and is ignored by other buttons.

See Also

Customizing the Back button