Add (E10)/(E5) bracket labels to Unleaded/Premium in picker and descriptions
This commit is contained in:
@@ -193,11 +193,12 @@ struct StationsView: View {
|
||||
// MARK: - Fuel-type iconography (app target only — FuelStore.swift is Foundation-only)
|
||||
|
||||
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 {
|
||||
switch self {
|
||||
case .e10: return "Unleaded"
|
||||
case .e5: return "Premium"
|
||||
case .e10: return "Unleaded (E10)"
|
||||
case .e5: return "Premium (E5)"
|
||||
case .diesel: return "Diesel"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,8 +56,8 @@ enum FuelType: String, Codable, CaseIterable, Identifiable {
|
||||
|
||||
var displayName: String {
|
||||
switch self {
|
||||
case .e10: return "E10 Unleaded"
|
||||
case .e5: return "E5 Premium"
|
||||
case .e10: return "Unleaded (E10)"
|
||||
case .e5: return "Premium (E5)"
|
||||
case .diesel: return "Diesel"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user