Round brand logos in station rows: 11 bundled assets (Simple Icons + Wikimedia), fuel-pump fallback for unknown brands

This commit is contained in:
FuelBoard Contributor
2026-08-11 15:00:26 +01:00
parent acb5c33578
commit d220023917
25 changed files with 191 additions and 0 deletions
+19
View File
@@ -235,6 +235,25 @@ struct StationRow: View {
var body: some View {
HStack(spacing: 12) {
// Round brand logo (or generic fuel pump fallback)
Group {
if let asset = station.brandImageName {
Image(asset)
.resizable()
.scaledToFit()
.padding(3)
} else {
Image(systemName: "fuelpump.fill")
.font(.system(size: 16))
.foregroundStyle(.white)
}
}
.frame(width: 34, height: 34)
.background(Circle().fill(.white))
.clipShape(Circle())
.overlay(Circle().stroke(Color.primary.opacity(0.08), lineWidth: 1))
.shadow(color: .black.opacity(0.08), radius: 2, y: 1)
VStack(alignment: .leading, spacing: 2) {
HStack(spacing: 6) {
Text(station.name)