Instance Property

isTranslucent

A Boolean value indicating whether the navigation bar is translucent (true) or not (false).

Declaration

var isTranslucent: Bool { get set }

Discussion

When the navigation bar is translucent, configure the edgesForExtendedLayout and extendedLayoutIncludesOpaqueBars properties of your view controller to display your content underneath the navigation bar.

If the navigation bar doesn't have a custom background image, or if any pixel of the background image has an alpha value of less than 1.0, the default value of this property is true. If the background image is completely opaque, the default value of this property is false. If you set this property to true and the custom background image is completely opaque, UIKit applies a system-defined opacity of less than 1.0 to the image. If you set this property to false and the background image is not opaque, UIKit adds an opaque backdrop.

See Also

Customizing the Bar's Appearance

var prefersLargeTitles: Bool

A Boolean value indicating whether the title should be displayed in a large format.

var standardAppearance: UINavigationBarAppearance

The appearance settings for a standard-height navigation bar.

Beta
var compactAppearance: UINavigationBarAppearance?

The appearance settings for a compact-height navigation bar.

Beta
var scrollEdgeAppearance: UINavigationBarAppearance?

The appearance settings to use when the edge of any scrollable content reaches the matching edge of the navigation bar.

Beta
Legacy Customizations

Customize appearance information directly on the navigation bar object.

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