Contents

setBackgroundImage(_:for:barMetrics:)

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

Declaration

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

Parameters

  • backgroundImage:

    The image to use for the search bar background in the position specified by barPosition and with the metrics specified by barMetrics.

  • barPosition:

    A bar position constant.

  • barMetrics:

    A bar metrics constant.

See Also

Customizing the search bar appearance