Contents

setBackgroundImage(_:forToolbarPosition:barMetrics:)

Sets the image to use for the background in a given position and with given metrics.

Declaration

func setBackgroundImage(_ backgroundImage: UIImage?, forToolbarPosition topOrBottom: UIBarPosition, barMetrics: UIBarMetrics)

Parameters

  • backgroundImage:

    The image to use for the toolbar background in the position specified by topOrBottom and with the metrics specified by barMetrics.

  • topOrBottom:

    A toolbar position constant.

  • barMetrics:

    A bar metrics constant.

See Also

Changing the background