jel/Jel/Views/Library/Item/ItemView.swift

31 lines
478 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)
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())
//}