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
barPositionand with the metrics specified bybarMetrics. - barPosition:
A bar position constant.
- barMetrics:
A bar metrics constant.