SwiftUI Result of NavigationLink initializer is unused
 SwiftUI Result of NavigationLink initializer is unused 
 Result of ‘NavigationLink<Label, Destination>’ initializer is unused
Instead of this:
1
2
3
4
5
.toolbar {
	ToolbarItemGroup(placement: .primaryAction) {
	    Button("Edit Collected Monster", systemImage: "gear") {
	    	NavigationLink("", destination: MonsterSearchView())
	    }
Use this:
1
2
3
4
5
.toolbar {
	ToolbarItemGroup(placement: .primaryAction) {
		NavigationLink(destination: MonsterSearchView(), label: {
			Image(systemName: "gear")
		})
 This post is licensed under  CC BY 4.0  by the author.