Show toasts above shared sheets

A toast shown while a shared sheet was up, such as a failed link action
over Open Link, appeared behind the sheet. Sheets from .appSheetHost now
carry their own toast overlay, and only the top-most overlay of a scope
shows its toasts.
This commit is contained in:
Arkadiusz Fal
2026-10-07 23:59:43 +02:00
parent 7527370f7f
commit 33152f4371
6 changed files with 76 additions and 7 deletions

View File

@@ -31,7 +31,8 @@ struct ContentView: View {
// and takes global requests while it is up.
.appSheetHost(
isTopLevel: appEnvironment?.navigationCoordinator.isPlayerExpanded != true,
dismissesOnExternalNavigation: true
dismissesOnExternalNavigation: true,
toastScope: .main
)
.toastOverlay()
}