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

34 lines
683 B
Swift
Raw Normal View History

2023-12-25 01:01:52 +00:00
//
// ItemInfoView.swift
// Jel
//
// Created by zerocool on 12/24/23.
//
import SwiftUI
import JellyfinKit
struct ItemInfoView: View {
@State var item: BaseItemDto
var body: some View {
VStack(alignment: .leading) {
HStack {
Text((item.productionYear != nil) ? String(item.productionYear!) : "---")
.shadow(color: .black, radius: 1)
Text("")
.shadow(color: .black, radius: 1)
Text(item.genres?.first ?? "---")
.shadow(color: .black, radius: 1)
2023-12-25 01:01:52 +00:00
}
Text(item.getRuntime() ?? "-:--")
.shadow(color: .black, radius: 1)
2023-12-25 01:01:52 +00:00
}
.font(.caption)
}
}
//#Preview {
// ItemInfoView()
//}