From 1d961ab7c2374d60e279764c864e0ed93fbb5263 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 6 Oct 2026 23:59:11 +0200 Subject: [PATCH] Host shared sheets in the tvOS player The tvOS player covers the root view with a fullScreenCover and had no sheet host, so global sheet requests made while it was up (link action confirmations) were never presented and the action waited forever. --- Yattee/Views/Player/tvOS/TVPlayerView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Yattee/Views/Player/tvOS/TVPlayerView.swift b/Yattee/Views/Player/tvOS/TVPlayerView.swift index a3174335..1ce6bf73 100644 --- a/Yattee/Views/Player/tvOS/TVPlayerView.swift +++ b/Yattee/Views/Player/tvOS/TVPlayerView.swift @@ -124,6 +124,9 @@ struct TVPlayerView: View { mpvPlayerContent .ignoresSafeArea() .playerToastOverlay() + // Global sheet requests (e.g. link action confirmations) while the + // player covers the screen; the root host is underneath it. + .appSheetHost(isTopLevel: appEnvironment?.navigationCoordinator.isPlayerExpanded == true) .fullScreenCover(isPresented: $showingErrorSheet) { ZStack { Rectangle()