A little more map cleanup

This commit is contained in:
Garth Vander Houwen 2024-03-24 23:13:35 -07:00
parent f3f126da38
commit b0101ab4ce
2 changed files with 2 additions and 5 deletions

View file

@ -28,7 +28,6 @@ struct MeshMapContent: MapContent {
// Map Configuration
@Binding var selectedPosition: PositionEntity?
@Binding var showWaypoints: Bool
//@Binding var editingWaypoint: WaypointEntity?
@Binding var selectedWaypoint: WaypointEntity?
var delay: Double = 0
@ -199,8 +198,6 @@ struct MeshMapContent: MapContent {
@MapContentBuilder
var body: some MapContent {
if positions.count > 0 {
meshMap
}
meshMap
}
}

View file

@ -119,7 +119,7 @@ Spacer()
.padding(.bottom)
#endif
}
.presentationDetents([.fraction(0.45), .fraction(0.65)])
.presentationDetents([.fraction(meshMap ? 0.55 : 0.45), .fraction(0.65)])
.presentationDragIndicator(.visible)
}