From ac99971d03b6389569fe2831b98cd1388cd0a504 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 13 Nov 2022 12:16:44 +0100 Subject: [PATCH] Fix progress view on banner --- Shared/Videos/VideoBanner.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Shared/Videos/VideoBanner.swift b/Shared/Videos/VideoBanner.swift index cc758353..b4fed9bc 100644 --- a/Shared/Videos/VideoBanner.swift +++ b/Shared/Videos/VideoBanner.swift @@ -22,7 +22,7 @@ struct VideoBanner: View { var body: some View { HStack(alignment: stackAlignment, spacing: 12) { - ZStack(alignment: .bottom) { + VStack(spacing: thumbnailStackSpacing) { smallThumbnail #if !os(tvOS) @@ -114,6 +114,14 @@ struct VideoBanner: View { #endif } + private var thumbnailStackSpacing: Double { + #if os(tvOS) + 8 + #else + 2 + #endif + } + @ViewBuilder private var smallThumbnail: some View { ZStack { Color("PlaceholderColor")