blob: dda1c3972b0bb0fb5ff277e1a08481e4e7870cd3 (
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
30
31
32
33
34
35
36
37
|
//
// ItemInfoView.swift
// Jel
//
// Created by zerocool on 12/24/23.
//
import SwiftUI
import JellyfinKit
struct ItemInfoView: View {
var item: BaseItemDto
var body: some View {
VStack(alignment: .leading) {
HStack {
Text((item.productionYear != nil) ? String(item.productionYear!) : "---")
Text("•")
Text(item.genres?.first ?? "---")
}
HStack {
if item.type == .movie {
Text(item.getRuntime() ?? "-:--")
}
if let officialRating = item.officialRating {
TextRatingView(officialRating, fillStyle: .stroke)
}
}
}
.font(.caption)
}
}
//#Preview {
// ItemInfoView()
//}
|