Instance Property

prefersLargeTitles

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

Declaration

var prefersLargeTitles: Bool { get set }

Discussion

When this property is set to true, the navigation bar allows the title to be displayed out-of-line and using a larger font. The navigation item used to build the bar must specify whether it wants its title displayed in the large or small format. Use the largeTitleDisplayMode property to configure the title's appearance.

When the property is set to false, the navigation bar displays the title inline with the other bar button items.

See Also

Customizing the Title's Appearance

var titleTextAttributes: [NSAttributedStringKey : Any]?

Display attributes for the bar’s title text.

var largeTitleTextAttributes: [NSAttributedStringKey : Any]?

Display attributes for the bar's large title text.

func titleVerticalPositionAdjustment(for: UIBarMetrics)

Returns the title’s vertical position adjustment for given bar metrics.

func setTitleVerticalPositionAdjustment(CGFloat, for: UIBarMetrics)

Sets the title’s vertical position adjustment for given bar metrics.