dont hide waypoint form

This commit is contained in:
Garth Vander Houwen 2023-01-20 22:20:35 -08:00
parent 2ce5cab3c1
commit c5f43acec6

View file

@ -82,11 +82,10 @@ struct NodeMap: View {
.ignoresSafeArea(.all, edges: [.top, .leading, .trailing])
.frame(maxHeight: .infinity)
.sheet(isPresented: $presentingWaypointForm ) {//, onDismiss: didDismissSheet) {
if waypointCoordinate != nil {
WaypointFormView(coordinate: waypointCoordinate!, waypointId: editingWaypoint)
.presentationDetents([.medium, .large])
.presentationDragIndicator(.automatic)
}
WaypointFormView(coordinate: waypointCoordinate ?? LocationHelper.DefaultLocation, waypointId: editingWaypoint)
.presentationDetents([.medium, .large])
.presentationDragIndicator(.automatic)
}
}
.navigationBarItems(leading: