Video details changes and channel sheet

This commit is contained in:
Arkadiusz Fal
2023-04-22 10:56:42 +02:00
parent 5db74a3997
commit 67690bc435
15 changed files with 389 additions and 256 deletions

View File

@@ -6,7 +6,7 @@ struct InspectorView: View {
@ObservedObject private var player = PlayerModel.shared
var body: some View {
ScrollView {
Section(header: header) {
VStack(alignment: .leading, spacing: 12) {
if let video {
VStack(spacing: 4) {
@@ -53,10 +53,14 @@ struct InspectorView: View {
NoCommentsView(text: "Not playing", systemImage: "stop.circle.fill")
}
}
.padding(.top, 60)
.padding(.bottom, 50)
}
.padding(.horizontal)
}
var header: some View {
Text("Inspector")
.font(.caption)
.foregroundColor(.secondary)
.frame(maxWidth: .infinity, alignment: .leading)
}
@ViewBuilder func videoDetailGroupHeading(_ heading: String, image systemName: String? = nil) -> some View {