From 22bbf731e9506afe8fbf9066a20b377ffe56408e Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 22 May 2023 22:52:36 +0200 Subject: [PATCH] Fix #466 --- Shared/Channels/ChannelVideosView.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Shared/Channels/ChannelVideosView.swift b/Shared/Channels/ChannelVideosView.swift index c4a511b8..3a9fda99 100644 --- a/Shared/Channels/ChannelVideosView.swift +++ b/Shared/Channels/ChannelVideosView.swift @@ -66,7 +66,7 @@ struct ChannelVideosView: View { .frame(maxWidth: .infinity) #endif - VerticalCells(items: contentItems, edgesIgnoringSafeArea: .init()) { + VerticalCells(items: contentItems, edgesIgnoringSafeArea: verticalCellsEdgesIgnoringSafeArea) { if let description = presentedChannel?.description, !description.isEmpty { Button { withAnimation(.spring()) { @@ -200,6 +200,14 @@ struct ChannelVideosView: View { } } + var verticalCellsEdgesIgnoringSafeArea: Edge.Set { + #if os(tvOS) + return .horizontal + #else + return .init() + #endif + } + @ViewBuilder var favoriteButton: some View { if let presentedChannel { FavoriteButton(item: FavoriteItem(section: .channel(accounts.app.appType.rawValue, presentedChannel.id, presentedChannel.name)))