jel/Jel/Views/Item/ItemView.swift

33 lines
541 B
Swift
Raw Normal View History

//
// ItemView.swift
// Jel
//
// Created by zerocool on 12/23/23.
//
import SwiftUI
import JellyfinKit
struct ItemView: View {
@State var item: BaseItemDto
2024-01-08 19:00:59 +00:00
var body: some View {
ScrollView {
VStack {
switch item.type {
case .movie:
ItemMovieView(item: item)
2024-01-13 07:20:20 +00:00
case .person:
ItemPersonView(item: item)
2024-01-08 19:00:59 +00:00
default:
ItemMediaView(item: item)
}
}
}
2024-01-09 17:32:06 +00:00
.scrollIndicators(.hidden)
2024-01-08 19:00:59 +00:00
}
}
2024-01-08 19:00:59 +00:00
//#Preview {
// ItemView(item: BaseItemDto())
//}