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.
This commit is contained in:
Arkadiusz Fal
2026-10-06 23:59:11 +02:00
parent 3c86674465
commit 1d961ab7c2

View File

@@ -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()