X-Git-Url: https://git.r.bdr.sh/rbdr/map/blobdiff_plain/144167621e845b05df55a9f2f00c4bc270d42b55..91fd86189477e6c690c6487d51d80bc58c8ecb63:/Map/Views/ContentView.swift?ds=inline diff --git a/Map/Views/ContentView.swift b/Map/Views/ContentView.swift index cf1f145..f439026 100644 --- a/Map/Views/ContentView.swift +++ b/Map/Views/ContentView.swift @@ -37,6 +37,11 @@ struct ContentView: View { .foregroundColor(Color.black) .cornerRadius(2.0) }.padding(.leading, 8.0) + }.contextMenu { + Button(action: { store.send(.deleteMap(map: map))}) { + Image(systemName: "trash") + Text("Delete") + } } } .onDelete(perform: deleteMaps) @@ -51,6 +56,7 @@ struct ContentView: View { } } } + DefaultMapView() } }