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 {
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")