summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/Library/LibraryView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Dashboard/Library/LibraryView.swift')
-rw-r--r--Jel/Views/Dashboard/Library/LibraryView.swift44
1 files changed, 0 insertions, 44 deletions
diff --git a/Jel/Views/Dashboard/Library/LibraryView.swift b/Jel/Views/Dashboard/Library/LibraryView.swift
deleted file mode 100644
index 63bfd64..0000000
--- a/Jel/Views/Dashboard/Library/LibraryView.swift
+++ /dev/null
@@ -1,44 +0,0 @@
-//
-// LibraryView.swift
-// Jel
-//
-// Created by zerocool on 12/15/23.
-//
-
-import SwiftUI
-import JellyfinKit
-
-struct LibraryView: View {
- @EnvironmentObject var jellyfinClient: JellyfinClientController
-
- @StateObject var authState: AuthStateController = AuthStateController.shared
-
- @State var libraries: [BaseItemDto] = []
- var body: some View {
- ScrollView(.horizontal, showsIndicators: false) {
- HStack {
- ForEach(libraries) {library in
- if library.collectionType == "movies" || library.collectionType == "tvshows" {
- LibraryIconView(library: library)
- }
- }
- }
- }
- .onAppear {
- Task {
- do {
- let request = Paths.getUserViews(userID: authState.userId ?? "")
- if let results = try await jellyfinClient.send(request).value.items {
- libraries = results
- }
- } catch {
- print(error)
- }
- }
- }
- }
-}
-
-//#Preview {
-// LibraryView()
-//}