2023-12-23 19:15:01 +00:00
|
|
|
//
|
|
|
|
// 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)
|
|
|
|
default:
|
|
|
|
ItemMediaView(item: item)
|
|
|
|
}
|
2023-12-23 19:15:01 +00:00
|
|
|
}
|
|
|
|
}
|
2024-01-09 17:32:06 +00:00
|
|
|
.scrollIndicators(.hidden)
|
2024-01-08 19:00:59 +00:00
|
|
|
}
|
2023-12-23 19:15:01 +00:00
|
|
|
}
|
|
|
|
|
2024-01-08 19:00:59 +00:00
|
|
|
//#Preview {
|
|
|
|
// ItemView(item: BaseItemDto())
|
|
|
|
//}
|