From c3de87a12e2563ff8ff43f5997a140d11eb792e1 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 15 Apr 2026 04:53:12 +0200 Subject: [PATCH] Add channel avatar to tvOS player controls Matches the iOS controls by showing the channel avatar next to the video title and channel name, reusing ChannelAvatarView and the Yattee Server fallback. --- .../Views/Player/tvOS/TVPlayerControlsView.swift | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Yattee/Views/Player/tvOS/TVPlayerControlsView.swift b/Yattee/Views/Player/tvOS/TVPlayerControlsView.swift index 3aa1cffb..c30f7f46 100644 --- a/Yattee/Views/Player/tvOS/TVPlayerControlsView.swift +++ b/Yattee/Views/Player/tvOS/TVPlayerControlsView.swift @@ -117,7 +117,17 @@ struct TVPlayerControlsView: View { // MARK: - Top Bar private var topBar: some View { - HStack(alignment: .top) { + HStack(alignment: .center, spacing: 20) { + // Channel avatar + if let video = playerState?.currentVideo { + ChannelAvatarView( + author: video.author, + size: 110, + yatteeServerURL: yatteeServerURL, + source: video.id.source + ) + } + VStack(alignment: .leading, spacing: 8) { // Video title Text(playerState?.currentVideo?.title ?? "") @@ -145,6 +155,10 @@ struct TVPlayerControlsView: View { } } + private var yatteeServerURL: URL? { + appEnvironment?.instancesManager.yatteeServerInstances.first { $0.isEnabled }?.url + } + // MARK: - Action Buttons private var actionButtons: some View {