From d48fc71660def705a851240a668f3d247c2ae600 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 2 Sep 2022 01:05:41 +0200 Subject: [PATCH] Don't hide related on load --- Shared/Player/PlayerQueueView.swift | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Shared/Player/PlayerQueueView.swift b/Shared/Player/PlayerQueueView.swift index ee20ad88..d4fd1c13 100644 --- a/Shared/Player/PlayerQueueView.swift +++ b/Shared/Player/PlayerQueueView.swift @@ -5,7 +5,6 @@ import SwiftUI struct PlayerQueueView: View { var sidebarQueue: Bool @Binding var fullScreen: Bool - @State private var relatedVisible = false @FetchRequest(sortDescriptors: [.init(key: "watchedAt", ascending: false)]) var watches: FetchedResults @@ -25,7 +24,7 @@ struct PlayerQueueView: View { autoplaying } playingNext - if sidebarQueue, relatedVisible { + if sidebarQueue { related } if saveHistory, showHistoryInPlayer { @@ -38,15 +37,6 @@ struct PlayerQueueView: View { .listRowInsets(EdgeInsets()) #endif } - .onChange(of: player.currentItem) { _ in - relatedVisible = false - - Delay.by(2) { - withAnimation(.easeIn(duration: 0.25)) { - self.relatedVisible = true - } - } - } #if os(macOS) .listStyle(.inset) #elseif os(iOS)