From 8370714b61947d213602fcc1fbe5150f8598f533 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 7 Jan 2022 20:11:56 +0100 Subject: [PATCH] Fix hiding history in Now Playing view in tvOS --- tvOS/NowPlayingView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tvOS/NowPlayingView.swift b/tvOS/NowPlayingView.swift index ecc67000..e231e4aa 100644 --- a/tvOS/NowPlayingView.swift +++ b/tvOS/NowPlayingView.swift @@ -20,6 +20,7 @@ struct NowPlayingView: View { @EnvironmentObject private var recents @Default(.saveHistory) private var saveHistory + @Default(.showHistoryInPlayer) private var showHistoryInPlayer var body: some View { if inInfoViewController { @@ -102,7 +103,7 @@ struct NowPlayingView: View { } } - if sections.contains(.playedPreviously), saveHistory, !visibleWatches.isEmpty { + if sections.contains(.playedPreviously), saveHistory, showHistoryInPlayer, !visibleWatches.isEmpty { Section(header: Text("Played Previously")) { ForEach(visibleWatches, id: \.videoID) { watch in Button {