mirror of
https://github.com/yattee/yattee.git
synced 2026-10-26 06:32:53 +00:00
Present row sheets through the shared sheet host
Each video row carried its own sheets: tappableVideo added the queue action and resume sheets, the context menu and swipe actions added add-to-playlist and download options, so a row could declare up to six sheets, owned by a row that a list may recycle. Rows now present those through the nearest sheet host, as does the video info view's resume prompt. The queue action sheet for a tapped description link becomes a global request instead of being declared at both the app root and the expanded player. Sheets take the color scheme where their host sits, so the floating details panel's dark override no longer reaches them and the presentationColorScheme workaround is gone.
This commit is contained in:
@@ -13,8 +13,7 @@
|
||||
// The state lives on `NavigationCoordinator` so both the root app view and
|
||||
// `ExpandedPlayerSheet` can host the dialogs. Only whichever host is currently
|
||||
// on top presents the dialog (`shouldHost`), so the dialog is visible whether
|
||||
// the expanded player is covering the main view or not — matching the
|
||||
// `descriptionLinkQueueSheetVideo` pattern.
|
||||
// the expanded player is covering the main view or not.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
Reference in New Issue
Block a user