From 7067413b9b2f796e3677dec0c879530c34d0ff8d Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 15 Apr 2026 04:55:09 +0200 Subject: [PATCH] Push channel onto nav stack from tvOS details panel The "View Channel" button in the tvOS video details panel only dismissed the player; the channel was never pushed. Delegate to NavigationCoordinator.navigateToChannel(for:collapsePlayer:) so UnifiedTabView's pendingNavigation observer appends the destination, matching iOS behavior and handling extracted/media-source cases. --- Yattee/Views/Player/tvOS/TVDetailsPanel.swift | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Yattee/Views/Player/tvOS/TVDetailsPanel.swift b/Yattee/Views/Player/tvOS/TVDetailsPanel.swift index ce2c2f6b..e4dcb024 100644 --- a/Yattee/Views/Player/tvOS/TVDetailsPanel.swift +++ b/Yattee/Views/Player/tvOS/TVDetailsPanel.swift @@ -198,7 +198,7 @@ struct TVDetailsPanel: View { Button { // Navigate to channel if let video { - navigateToChannel(video.author) + navigateToChannel(for: video) } } label: { Text(String(localized: "channel.view")) @@ -284,13 +284,9 @@ struct TVDetailsPanel: View { // MARK: - Navigation - private func navigateToChannel(_ author: Author) { - // Close the player and navigate to channel + private func navigateToChannel(for video: Video) { onDismiss() - appEnvironment?.navigationCoordinator.isPlayerExpanded = false - - // Navigate to channel view - // This would need to be implemented based on your navigation system + appEnvironment?.navigationCoordinator.navigateToChannel(for: video, collapsePlayer: true) } }