Sets the title of this view’s navigation bar with a string.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
A title for this view to display in the navigation bar.
navigation to set the title of the navigation bar using a
String. This modifier only takes effect when this view is inside of and visible within a
In the example below, text for the navigation bar title is provided using a string to provide its text.