Generic Instance Method

navigationBarItems(leading:)

Configures the navigation bar items for the view.

Declaration

func navigationBarItems<L>(leading: L) -> some View where L : View

Parameters

leading

A view that appears on the leading edge of the title.

Discussion

This modifier only takes effect when this view is inside of and visible within a NavigationView.

See Also

Configuring Navigation and Tab Bar Item Views

func navigationBarBackButtonHidden(Bool) -> View

Hides the navigation bar back button for the view.

func navigationBarItems<L, T>(leading: L, trailing: T) -> View

Configures the navigation bar items for the view.

func navigationBarItems<T>(trailing: T) -> View

Configures the navigation bar items for the view.

struct NavigationBarItem

A configuration for a navigation bar that represents a view at the top of a navigation stack.

func tabItem<V>(() -> V) -> View

Sets the tab bar item associated with this view.