Contents

setBackgroundImage(_:for:)

Sets the background image for given bar metrics.

Declaration

func setBackgroundImage(_ backgroundImage: UIImage?, for barMetrics: UIBarMetrics)

Parameters

  • backgroundImage:

    The background image to use for barMetrics.

  • barMetrics:

    A bar metrics constant.

Discussion

Equivalent to using setBackgroundImage(_:for:barMetrics:) with a position of UIBarPosition.any.

See Also

Changing the background