I have a question to add a right button in navigation bar..
I have two views: View A and View B
I add a navigation bar to view A, after I used self.navigat
self.navigat
Try this code for Swift UI :
.navigationBarItems( leading: HStack { Button("About") { print("About tapped!") } Button("Call") { print("Call tapped!") } }, trailing: HStack { Button("Settings") { print("Settings tapped!") } Button("Contacts") { print("Contacts tapped!") } } )