Add (E10)/(E5) bracket labels to Unleaded/Premium in picker and descriptions

This commit is contained in:
FuelBoard Contributor
2026-08-11 22:41:50 +01:00
parent 313fe84037
commit 05f3ef0a70
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -193,11 +193,12 @@ struct StationsView: View {
// MARK: - Fuel-type iconography (app target only FuelStore.swift is Foundation-only) // MARK: - Fuel-type iconography (app target only FuelStore.swift is Foundation-only)
extension FuelType { extension FuelType {
/// Short segment label ("Unleaded" / "Premium" / "Diesel") for the picker. /// Short segment label ("Unleaded (E10)" / "Premium (E5)" / "Diesel") for
/// the picker and description.
var shortName: String { var shortName: String {
switch self { switch self {
case .e10: return "Unleaded" case .e10: return "Unleaded (E10)"
case .e5: return "Premium" case .e5: return "Premium (E5)"
case .diesel: return "Diesel" case .diesel: return "Diesel"
} }
} }
+2 -2
View File
@@ -56,8 +56,8 @@ enum FuelType: String, Codable, CaseIterable, Identifiable {
var displayName: String { var displayName: String {
switch self { switch self {
case .e10: return "E10 Unleaded" case .e10: return "Unleaded (E10)"
case .e5: return "E5 Premium" case .e5: return "Premium (E5)"
case .diesel: return "Diesel" case .diesel: return "Diesel"
} }
} }