Contents

title

The navigation item’s title that displays in the navigation bar.

Declaration

var title: String? { get set }

Discussion

The default value is nil.

When the navigation item is on the navigation item stack and is second from the top — in other words, its view controller manages the views that the user would navigate back to — the value in this property is used for the back button on the top-most navigation bar. If the value of this property is nil, the system uses the string “Back” as the text of the back button. In iOS 11 and later, the size and position of the title is determined by the prefersLargeTitles property of the navigation bar and the largeTitleDisplayMode property of the navigation item.

See Also

Related Documentation

Configuring the title