summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/Library/LibraryIconView.swift
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-12-23 00:53:44 -0500
committerShav Kinderlehrer <[email protected]>2023-12-23 00:53:44 -0500
commit885615d1dd029138700c36bb8b23d211cf713811 (patch)
treed358d87926a8b5b73db87e9b87f3c46dfb35a435 /Jel/Views/Dashboard/Library/LibraryIconView.swift
parent73c40b5aa0142ed89082214f790df539174e4dac (diff)
downloadjel-885615d1dd029138700c36bb8b23d211cf713811.tar.gz
jel-885615d1dd029138700c36bb8b23d211cf713811.zip
Refactor LibraryIconView
Diffstat (limited to 'Jel/Views/Dashboard/Library/LibraryIconView.swift')
-rw-r--r--Jel/Views/Dashboard/Library/LibraryIconView.swift38
1 files changed, 0 insertions, 38 deletions
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())
-//}