From 284aec679f94cd8d8a5d22feba6cd1337290222e Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 12 Feb 2026 07:01:08 +0100 Subject: [PATCH] Add context menu and swipe actions to related videos in VideoInfoView --- Yattee/Views/Video/VideoInfoView.swift | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Yattee/Views/Video/VideoInfoView.swift b/Yattee/Views/Video/VideoInfoView.swift index 482cd4a7..180c308d 100644 --- a/Yattee/Views/Video/VideoInfoView.swift +++ b/Yattee/Views/Video/VideoInfoView.swift @@ -1441,21 +1441,18 @@ struct VideoInfoView: View { CollapsibleSection(title: String(localized: "videoInfo.section.relatedVideos"), isExpanded: $isRelatedExpanded) { LazyVStack(spacing: 12) { ForEach(Array(videos.enumerated()), id: \.element.id) { index, relatedVideo in - Button { - let queueContext = VideoQueueContext( - video: relatedVideo, + VideoRowView(video: relatedVideo, style: .regular) + .tappableVideo( + relatedVideo, queueSource: .manual, sourceLabel: String(localized: "videoInfo.section.relatedVideos"), videoList: videos, videoIndex: index, - startTime: nil, loadMoreVideos: nil ) - navigationCoordinator?.navigate(to: .video(.loaded(relatedVideo), queueContext: queueContext)) - } label: { - VideoRowView(video: relatedVideo, style: .regular, disableInternalTapHandling: true) - } - .buttonStyle(.plain) + #if !os(tvOS) + .videoSwipeActions(video: relatedVideo) + #endif if index < videos.count - 1 { Divider()