blob: d48dfef95f41f2d1e0a99167e670059a17d5197a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
//
// 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()
//}
|