backgroundImage(for:barMetrics:)
Returns the background image for a specified state and bar metrics.
Declaration
func backgroundImage(for state: UIControl.State, barMetrics: UIBarMetrics) -> UIImage?Parameters
- state:
A control state.
- barMetrics:
Bar metrics.
Return Value
The background image for the button given state and metrics.