Bonjour as the title says:
I have a contextual menu in my app, using swift, I want to open a New View from a item in a contextual menu
when I click on the like to go to MainView, nothings happens Please Help me I am very new in IOS programmation
here is my code so far:
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
Menu {
NavigationLink(destination:MainView()){
Label("MainView", systemImage: "house")
}
Button(action: {
// Show modal text for copyright
}) {
Label("Modal Text", systemImage: "text.book.closed")
}
Button(action: {
// Go to HelpView
}) {
Label("HelpView", systemImage: "questionmark.circle")
}
} label: {
Image(systemName: "house")
}
}
}
Thanks for helping me I have been fighting with this for hours
David