Route YouTube links tapped in descriptions through in-app playback

Description links to YouTube videos, channels, playlists, and external
video URLs now open in Yattee instead of Safari. When a video is
already playing, tapping a video link surfaces the existing
QueueActionSheet (Play Now / Play Next / Add to Queue) — the sheet is
hosted both at the app root and inside ExpandedPlayerSheet so it
appears above whichever layer is on screen.
This commit is contained in:
Arkadiusz Fal
2026-04-22 19:00:43 +02:00
parent 3afd0bdf78
commit b54c32edad
5 changed files with 103 additions and 1 deletions

View File

@@ -66,6 +66,12 @@ final class NavigationCoordinator {
/// Whether the mini player queue sheet is showing.
var isMiniPlayerQueueSheetPresented = false
/// Video to present in the queue action sheet (e.g. a video link tapped inside
/// a description). Set by the deep-link handler; cleared when the sheet dismisses.
/// Presented by YatteeApp when the player is collapsed and by ExpandedPlayerSheet
/// when the player is expanded, so the sheet always sits above the visible layer.
var descriptionLinkQueueSheetVideo: Video?
/// Whether the mini player playlist sheet is showing.
var isMiniPlayerPlaylistSheetPresented = false