backgroundImage(for:barMetrics:)
Returns the image used for the background in a given position and with given metrics.
Declaration
func backgroundImage(for barPosition: UIBarPosition, barMetrics: UIBarMetrics) -> UIImage?Parameters
- barPosition:
A bar position constant.
- barMetrics:
A bar metrics constant.
Return Value
The image used for the search bar background in the position specified by barPosition and with the metrics specified by barMetrics.
Discussion
The default value is nil.