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))