jellyflood/JellyfinPlayer tvOS/Views/ItemView/CinematicItemView/CinematicItemAboutView.swift

43 lines
1.2 KiB
Swift

//
/*
* SwiftFin is subject to the terms of the Mozilla Public
* License, v2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* Copyright 2021 Aiden Vigue & Jellyfin Contributors
*/
import SwiftUI
struct CinematicItemAboutView: View {
@ObservedObject var viewModel: ItemViewModel
@FocusState private var focused: Bool
var body: some View {
HStack(alignment: .top, spacing: 10) {
ImageView(src: viewModel.item.portraitHeaderViewURL(maxWidth: 230))
.frame(width: 230, height: 380)
.cornerRadius(10)
ZStack(alignment: .topLeading) {
Color(UIColor.darkGray).opacity(focused ? 0.2 : 0)
.cornerRadius(30)
.frame(height: 380)
VStack(alignment: .leading) {
Text("About")
.font(.title3)
Text(viewModel.item.overview ?? "No details available")
.padding(.top, 2)
}
.padding()
}
}
.focusable()
.focused($focused)
.padding(.horizontal, 50)
}
}