mirror of
https://github.com/yattee/yattee.git
synced 2026-11-27 16:31:29 +00:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user