From 1299b4a004002f258ccd57ac02de4f9f6ab89e31 Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Mon, 14 Sep 2026 22:11:23 +0100 Subject: [PATCH] feat: split Tap action into its own Settings section Moves the Tap station picker out of Units into a dedicated Tap action section, with the tap descriptor text as its footer. Units footer reverts to distances/prices only. --- FuelBoard/SettingsView.swift | 11 +++++++++-- FuelBoard/en.lproj/Localizable.strings | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/FuelBoard/SettingsView.swift b/FuelBoard/SettingsView.swift index 40bf899..96f79b0 100644 --- a/FuelBoard/SettingsView.swift +++ b/FuelBoard/SettingsView.swift @@ -118,6 +118,13 @@ struct SettingsView: View { WidgetCenter.shared.reloadAllTimelines() WatchSyncManager.shared.pushSnapshot() } + } header: { + Text("Units") + } footer: { + Text("Distances and search radii across the app, widget and alerts are shown in this unit. Prices can be shown as on a station sign (129.9) or in pounds and pence (£1.29⁹/L).") + } + + Section { Picker("Tap station", selection: $stationTapAction) { ForEach(StationTapAction.allCases) { action in Text(action.displayName).tag(action) @@ -128,9 +135,9 @@ struct SettingsView: View { FuelStore.saveStationTapAction(newValue) } } header: { - Text("Units") + Text("Tap action") } footer: { - Text("Distances and search radii across the app, widget and alerts are shown in this unit. Prices can be shown as on a station sign (129.9) or in pounds and pence (£1.29⁹/L). Tapping a station either opens directions straight away or shows its details first.") + Text("Tapping a station either opens directions straight away or shows its details first.") } Section { diff --git a/FuelBoard/en.lproj/Localizable.strings b/FuelBoard/en.lproj/Localizable.strings index 1a321ce..17cd4d2 100644 --- a/FuelBoard/en.lproj/Localizable.strings +++ b/FuelBoard/en.lproj/Localizable.strings @@ -57,12 +57,13 @@ "Price display" = "Price display"; "Distances and search radii across the app, widget and alerts are shown in this unit. Prices can be shown as on a station sign (129.9) or in pounds and pence (£1.29⁹/L)." = "Distances and search radii across the app, widget and alerts are shown in this unit. Prices can be shown as on a station sign (129.9) or in pounds and pence (£1.29⁹/L)."; "Tap station" = "Tap station"; +"Tap action" = "Tap action"; +"Tapping a station either opens directions straight away or shows its details first." = "Tapping a station either opens directions straight away or shows its details first."; "Open map" = "Open map"; "More info" = "More info"; "Name" = "Name"; "Address" = "Address"; "Distance" = "Distance"; -"Distances and search radii across the app, widget and alerts are shown in this unit. Prices can be shown as on a station sign (129.9) or in pounds and pence (£1.29⁹/L). Tapping a station either opens directions straight away or shows its details first." = "Distances and search radii across the app, widget and alerts are shown in this unit. Prices can be shown as on a station sign (129.9) or in pounds and pence (£1.29⁹/L). Tapping a station either opens directions straight away or shows its details first."; "Show introduction" = "Replay onboarding"; "Replay the welcome screen, including the location and notification permission prompts." = "Replay the welcome screen, including the location and notification permission prompts."; "Test alert notification (real data)" = "Test alert notification (real data)";