aboutsummaryrefslogtreecommitdiff
path: root/Map/Views
diff options
context:
space:
mode:
Diffstat (limited to 'Map/Views')
-rw-r--r--Map/Views/ContentView.swift6
1 files changed, 6 insertions, 0 deletions
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()
}
}