From 885615d1dd029138700c36bb8b23d211cf713811 Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Sat, 23 Dec 2023 00:53:44 -0500 Subject: Refactor LibraryIconView --- Jel/Views/Dashboard/Library/LibraryIconView.swift | 38 ----------------------- 1 file changed, 38 deletions(-) delete mode 100644 Jel/Views/Dashboard/Library/LibraryIconView.swift (limited to 'Jel/Views/Dashboard/Library/LibraryIconView.swift') diff --git a/Jel/Views/Dashboard/Library/LibraryIconView.swift b/Jel/Views/Dashboard/Library/LibraryIconView.swift deleted file mode 100644 index 0131ff7..0000000 --- a/Jel/Views/Dashboard/Library/LibraryIconView.swift +++ /dev/null @@ -1,38 +0,0 @@ -// -// LibraryIconView.swift -// Jel -// -// Created by zerocool on 12/15/23. -// - -import SwiftUI -import JellyfinKit -import BlurHashKit - -struct LibraryIconView: View { - @EnvironmentObject var jellyfinClient: JellyfinClientController - - @State var library: BaseItemDto - @State var loadingImage: Bool = true - - @State var loadedImageBinaryData: Data? - - var body: some View { - VStack { - AsyncImageView(imageId: library.id ?? "", - blurhash: library.imageBlurHashes?.primary?[library.imageTags?["Primary"] ?? ""] ?? "", - imageType: "Primary") - .aspectRatio(contentMode: .fill) - .frame(width: 255, height: 150) - .clipShape(RoundedRectangle(cornerRadius: 5)) - - - Text(library.name ?? "Unknown") - .font(.subheadline) - } - } -} - -//#Preview { -// LibraryIconView(library: BaseItemDto()) -//} -- cgit v1.2.3