From 79c012b4058d68d8180e8f608772d2a96696169f Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Sun, 11 Oct 2026 19:40:11 +0100 Subject: [PATCH] =?UTF-8?q?More=20info=20sheet:=20drop=20the=20Name=20row?= =?UTF-8?q?=20=E2=80=94=20the=20header=20already=20shows=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sheet's header (navigationTitle, .inline) shows the station name, and the address row no longer leads with the name either, so the Name row restated the header immediately above the address. The section now opens straight with Address; distance, Worth the drive and the buttons are untouched. Verified on the simulator: the sheet reads "Sainsbury's Halifax" in the header with rows "Address / WADE STREET, HX1 1SB" and "Distance / 0.5 mi", and no Name row. No other surface in the app prints a Name row. --- FuelBoard/StationDetailView.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/FuelBoard/StationDetailView.swift b/FuelBoard/StationDetailView.swift index 2d9028c..aadcb15 100644 --- a/FuelBoard/StationDetailView.swift +++ b/FuelBoard/StationDetailView.swift @@ -3,9 +3,10 @@ import MapKit import UIKit /// Detail sheet for a tapped station (when Settings → Tap station = More info). -/// Shows a small map preview, the station name, address, distance from the -/// current location, and a Directions button that opens Apple Maps — the same -/// destination a direct tap would have opened. +/// Shows a small map preview, the address, distance from the current location, +/// and a Directions button that opens Apple Maps — the same destination a direct +/// tap would have opened. The station name lives in the sheet header, not in a +/// row. struct StationDetailView: View { let station: FuelStation let location: Coordinate? @@ -45,7 +46,10 @@ struct StationDetailView: View { .listRowInsets(EdgeInsets()) } Section { - LabeledContent("Name", value: station.name) + // The station name is NOT repeated here: the sheet header + // (navigationTitle, inline) already shows it, and the address + // line below has any leading repeat of the name stripped, so + // a "Name" row only said it twice. LabeledContent("Address", value: StationAddressLine.display(address: station.address, postcode: station.postcode, name: station.name))