From f4ec895fb9502b6b9c794cec9357c66a148f86ba Mon Sep 17 00:00:00 2001 From: Benjamin Faershtein <119711889+RCGV1@users.noreply.github.com> Date: Thu, 12 Jun 2025 10:51:48 -0700 Subject: [PATCH] Seperated button --- Localizable.xcstrings | 3 +++ Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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)