Show distances in miles (app + widget) to match the miles filter
This commit is contained in:
@@ -158,7 +158,7 @@ struct FuelPriceWidgetView: View {
|
||||
.foregroundStyle(.green)
|
||||
}
|
||||
if let location = entry.location {
|
||||
Text(String(format: "%.1f km away", station.distanceKM(to: location.lat, lng2: location.lng)))
|
||||
Text(String(format: "%.1f mi away", station.distanceKM(to: location.lat, lng2: location.lng) * 0.621371))
|
||||
.font(.caption2)
|
||||
.foregroundStyle(.secondary)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user