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