ToolbarItem(placement: .bottomBar) {
NavigationLink(
destination: NoteView(note: Note())
) {
Image(systemName: "square.and.pencil")
}
}
This code is not working as expected: no action is being performed when I tap on the image.
Any idea why or way around?
A possible workaround is to move the
NavigationLink
outside thetoolbar
and activate with theisActive
parameter: