Generic Instance Method

navigationBarItems(leading:trailing:)

Configures the navigation bar items for the view.

Declaration

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

Parameters

leading

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

trailing

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

Discussion

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