diff --git a/Localizable.xcstrings b/Localizable.xcstrings index b5d0c59d..de82186b 100644 --- a/Localizable.xcstrings +++ b/Localizable.xcstrings @@ -33445,6 +33445,9 @@ } } } + }, + "Use my Location" : { + }, "Use Preset" : { "localizations" : { diff --git a/Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift b/Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift index 5279dfe2..5866e8ed 100644 --- a/Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift +++ b/Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift @@ -49,15 +49,18 @@ struct WaypointForm: View { .foregroundColor(.secondary) .font(.caption) + } Button { let currentLoc = LocationsHandler.currentLocation waypoint.coordinate.longitude = currentLoc.longitude waypoint.coordinate.latitude = currentLoc.latitude } label: { - Image(systemName: "location") + HStack { + Text("Use my Location") + Image(systemName: "location") + } } .accessibilityLabel("Set to current location") - } HStack { if waypoint.coordinate.latitude != 0 && waypoint.coordinate.longitude != 0 { DistanceText(meters: distance)