jel/Jel/Views/Item/ItemMediaView.swift

31 lines
593 B
Swift
Raw Normal View History

//
// ItemMediaView.swift
// Jel
//
// Created by zerocool on 12/23/23.
//
import SwiftUI
import JellyfinKit
2024-01-30 22:10:18 +00:00
import ExpandableText
2024-01-08 19:00:59 +00:00
struct ItemMediaView: View {
var item: BaseItemDto
2023-12-24 04:47:21 +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-25 01:01:52 +00:00
//#Preview {
// ItemMovieView(item: BaseItemDto())
//}