Fix progress view on banner

This commit is contained in:
Arkadiusz Fal 2022-11-13 12:16:44 +01:00
parent 256b1671c1
commit ac99971d03

View File

@ -22,7 +22,7 @@ struct VideoBanner: View {
var body: some View { var body: some View {
HStack(alignment: stackAlignment, spacing: 12) { HStack(alignment: stackAlignment, spacing: 12) {
ZStack(alignment: .bottom) { VStack(spacing: thumbnailStackSpacing) {
smallThumbnail smallThumbnail
#if !os(tvOS) #if !os(tvOS)
@ -114,6 +114,14 @@ struct VideoBanner: View {
#endif #endif
} }
private var thumbnailStackSpacing: Double {
#if os(tvOS)
8
#else
2
#endif
}
@ViewBuilder private var smallThumbnail: some View { @ViewBuilder private var smallThumbnail: some View {
ZStack { ZStack {
Color("PlaceholderColor") Color("PlaceholderColor")