diff options
Diffstat (limited to 'Jel/Views/Library/Item/Person/ItemPeopleView.swift')
-rw-r--r-- | Jel/Views/Library/Item/Person/ItemPeopleView.swift | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Jel/Views/Library/Item/Person/ItemPeopleView.swift b/Jel/Views/Library/Item/Person/ItemPeopleView.swift new file mode 100644 index 0000000..6e2a974 --- /dev/null +++ b/Jel/Views/Library/Item/Person/ItemPeopleView.swift @@ -0,0 +1,37 @@ +// +// 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) { + LazyHStack(alignment: .top) { + ForEach(item.people ?? [], id: \.iterId) {person in + ItemPersonIconView(person: person) + } + } + .padding(.horizontal) + } + .scrollIndicators(.hidden) + } + } +} + +//#Preview { +// ItemPeopleView() +//} |