mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user