mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Video details changes and channel sheet
This commit is contained in:
@@ -5,9 +5,9 @@ struct RelatedView: View {
|
||||
@ObservedObject private var player = PlayerModel.shared
|
||||
|
||||
var body: some View {
|
||||
List {
|
||||
if let related = player.currentVideo?.related {
|
||||
Section(header: Text("Related")) {
|
||||
LazyVStack {
|
||||
if let related = player.videoForDisplay?.related {
|
||||
Section(header: header) {
|
||||
ForEach(related) { video in
|
||||
PlayerQueueRow(item: PlayerQueueItem(video))
|
||||
.listRowBackground(Color.clear)
|
||||
@@ -34,6 +34,15 @@ struct RelatedView: View {
|
||||
.listStyle(.plain)
|
||||
#endif
|
||||
}
|
||||
|
||||
var header: some View {
|
||||
Text("Related")
|
||||
#if !os(macOS)
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
struct RelatedView_Previews: PreviewProvider {
|
||||
|
Reference in New Issue
Block a user