2023-12-23 19:15:01 +00:00
|
|
|
//
|
2023-12-27 13:25:35 +00:00
|
|
|
// ItemMediaView.swift
|
2023-12-23 19:15:01 +00:00
|
|
|
// Jel
|
|
|
|
//
|
|
|
|
// Created by zerocool on 12/23/23.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
|
|
|
import JellyfinKit
|
2024-01-30 22:10:18 +00:00
|
|
|
import ExpandableText
|
2023-12-23 19:15:01 +00:00
|
|
|
|
2024-01-08 19:00:59 +00:00
|
|
|
struct ItemMediaView: View {
|
|
|
|
var item: BaseItemDto
|
2023-12-24 04:47:21 +00:00
|
|
|
|
2023-12-24 07:36:14 +00:00
|
|
|
|
2023-12-23 19:15:01 +00:00
|
|
|
var body: some View {
|
2024-01-08 19:00:59 +00:00
|
|
|
VStack(alignment: .leading) {
|
|
|
|
Text(item.taglines?.count ?? 0 > 0 ? item.taglines?[0] ?? "" : "")
|
|
|
|
.font(.headline)
|
|
|
|
.frame(maxWidth: .infinity, alignment: .leading)
|
|
|
|
|
2024-01-30 22:10:18 +00:00
|
|
|
ExpandableText((item.overview ?? "").replacingOccurrences(of: "<br>", with: ""))
|
|
|
|
.lineLimit(8)
|
2023-12-23 19:15:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-25 01:01:52 +00:00
|
|
|
//#Preview {
|
|
|
|
// ItemMovieView(item: BaseItemDto())
|
|
|
|
//}
|