Instance Property

backgroundColor

The background color of the bar.

Declaration

@NSCopying var backgroundColor: UIColor? { get set }

Discussion

The bar layers the specified color on top of any blur effects you specified in the backgroundEffect property, and below the image in the backgroundImage property.

See Also

Configuring the Background Appearance

var backgroundEffect: UIBlurEffect?

The blur effect to apply to the bar's background.

var backgroundImage: UIImage?

The image to display on top of the bar's background color.

var backgroundImageContentMode: UIView.ContentMode

The content mode to use when displaying the bar's background image.