Sets the background image for given bar metrics.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
func setBackgroundImage(_ backgroundImage: UIImage?, for barMetrics: UIBar Metrics)
Parameters
backgroundImage
The background image to use for
bar
.Metrics barMetrics
A bar metrics constant.
Discussion
Equivalent to using set
with a position of UIBar
.