summaryrefslogtreecommitdiff
path: root/Jel/Views/Item/Person/ItemPeopleView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Item/Person/ItemPeopleView.swift')
-rw-r--r--Jel/Views/Item/Person/ItemPeopleView.swift46
1 files changed, 46 insertions, 0 deletions
diff --git a/Jel/Views/Item/Person/ItemPeopleView.swift b/Jel/Views/Item/Person/ItemPeopleView.swift
new file mode 100644
index 0000000..f007796
--- /dev/null
+++ b/Jel/Views/Item/Person/ItemPeopleView.swift
@@ -0,0 +1,46 @@
+//
+// ItemPeopleView.swift
+// Jel
+//
+// Created by zerocool on 1/8/24.
+//
+
+import SwiftUI
+import JellyfinKit
+import NukeUI
+
+struct ItemPeopleView: View {
+
+ var item: BaseItemDto
+
+ var body: some View {
+ VStack(alignment: .leading) {
+ Text("Cast and Crew")
+ .font(.title2)
+ .padding(.leading)
+
+ ScrollView(.horizontal) {
+ // FIXME: For some reason, a LazyHStack clips the text for this view
+ HStack(alignment: .top) {
+ ForEach(item.people ?? [], id: \.iterId) {person in
+ NavigationLink {
+ VStack {
+ ItemPersonIconView(person: person)
+ Text("Subview")
+ }
+ .navigationTitle(person.name ?? "Unnamed")
+ } label: {
+ ItemPersonIconView(person: person)
+ }
+ }
+ }
+ .padding(.horizontal)
+ }
+ .scrollIndicators(.hidden)
+ }
+ }
+}
+
+//#Preview {
+// ItemPeopleView()
+//}