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

30 lines
509 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.genres?.first ?? "---")
Text("")
Text((item.productionYear != nil) ? String(item.productionYear!) : "---")
}
Text(item.getRuntime() ?? "-:--")
}
.font(.caption)
}
}
//#Preview {
// ItemInfoView()
//}