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!) : "---")
|
2023-12-27 18:07:20 +00:00
|
|
|
.shadow(color: .black, radius: 1)
|
2023-12-27 13:25:35 +00:00
|
|
|
Text("•")
|
2023-12-27 18:07:20 +00:00
|
|
|
.shadow(color: .black, radius: 1)
|
2023-12-27 13:25:35 +00:00
|
|
|
Text(item.genres?.first ?? "---")
|
2023-12-27 18:07:20 +00:00
|
|
|
.shadow(color: .black, radius: 1)
|
2023-12-25 01:01:52 +00:00
|
|
|
}
|
|
|
|
Text(item.getRuntime() ?? "-:--")
|
2023-12-27 18:07:20 +00:00
|
|
|
.shadow(color: .black, radius: 1)
|
2023-12-25 01:01:52 +00:00
|
|
|
}
|
|
|
|
.font(.caption)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//#Preview {
|
|
|
|
// ItemInfoView()
|
|
|
|
//}
|