iOS: Produktliste zeigt Artikelbild statt Kästchen-Symbol

Hat ein Artikel ein Bild, zeigt die Produktliste jetzt ein Vorschaubild statt
des neutralen shippingbox-Symbols; ohne Bild bleibt das Symbol. Ein gemeinsamer
ProductImageCache verhindert, dass beim Scrollen dieselben Bilder immer wieder
geladen werden, und merkt sich auch "kein Bild". ProductPhotoSection haelt den
Cache bei Laden/Upload/Entfernen synchron.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-07-26 14:40:51 +02:00
parent 272609e70a
commit 3f47e273ad
2 changed files with 76 additions and 2 deletions

View File

@@ -298,8 +298,7 @@ struct ProductRow: View {
var body: some View {
HStack(spacing: 12) {
Image(systemName: "shippingbox")
.font(.body).foregroundStyle(.secondary).frame(width: 24)
ProductThumb(productId: product.id)
VStack(alignment: .leading, spacing: 2) {
Text(product.name)
Text(bestand)