Fix preview crash

This commit is contained in:
Christoph Hagen
2024-12-06 22:07:22 +01:00
parent 5fb689ac7c
commit 42a5d01480
4 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ struct MockImage {
static var images: [ImageResource] {
["image1", "image2", "image3", "image4"]
.map(ImageResource.init)
.map { ImageResource(resourceName: $0, type: .jpg) }
}
}

View File

@ -34,7 +34,7 @@ extension LocalizedTag {
name: "Electronics",
subtitle: "Projects with electronics",
description: "Some description of the tag",
thumbnail: ImageResource(resourceName: "image1"),
thumbnail: ImageResource(resourceName: "image1", type: .jpg),
originalUrl: "projects/electronics")
static let german = LocalizedTag(
@ -42,6 +42,6 @@ extension LocalizedTag {
name: "Elektronik",
subtitle: "Projekte mit Elektronik",
description: "Eine Beschreibung des Tags",
thumbnail: ImageResource(resourceName: "image2"),
thumbnail: ImageResource(resourceName: "image2", type: .jpg),
originalUrl: "projects/electronics")
}