I have a Detail view of a list where I navigate to from my main view:
NavigationView {
...
NavigationLink(destination: DetailView()) {
Text(entity.name ?? "Unknown")
}
...
}
Then in my DetailView I can see the back button to my Main view:
struct DetailView: View {
var body: some View {
Form {
...
}
.navigationBarTitle("Deatil")
/*.toolbar {
ToolbarItem(placement: .primaryAction) {
Button(action: {
...
}) {
Image(systemName: "ellipsis.circle")
}
}
}*/
}
}
Its all fine till I use the toolbar. Then I only see the toolbar but not the navigation to the last view. Why? Usually this should work, right?