The custom background image for the tab bar.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
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
type in UIImage
.
When a custom background image is present, the tab bar does not draw any blur effects behind itself, even when the is
property is true
.