Instance Property

backgroundImage

The custom background image for the tab bar.

Declaration

var backgroundImage: UIImage? { get set }

Discussion

If you specify a stretchable background image, the tab bar stretches your image to fill the available space. If your image is not stretchable and not large enough to fill the available space, the tab bar tiles the image. For information about how stretching works, see the UIImage.ResizingMode type in UIImage.

When a custom background image is present, the tab bar does not draw any blur effects behind itself, even when the isTranslucent property is true.

See Also

Changing the Background

var barTintColor: UIColor?

The tint color to apply to the tab bar background.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software