swift make reference to uibar back button code example
Example 1: add navigation bar button swiftui
.navigationBarItems(
leading: Button(action: {
// Actions
}, label: { Text("Button") }),
trailing: Button(action: {
// Actions
}, label: { Image("Icon") })
)
Example 2: remove back button from navigation bar swift
self.navigationItem.leftBarButtonItem = nil;