Configures the title of the navigation bar for the view.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func navigationBarTitle(_ title: Text, displayMode: Navigation Bar Item.Title Display Mode) -> some View
Parameters
title
A description of this view to display in the navigation bar.
displayMode
The way to display the title.
Discussion
This modifier only takes effect when this view is inside of and visible within a Navigation
.