This commit is contained in:
Arkadiusz Fal 2023-05-29 16:05:27 +02:00
parent 6ddf1113bf
commit eaeaa45422

View File

@ -37,22 +37,22 @@ struct VideoBanner: View {
var body: some View { var body: some View {
HStack(alignment: .top, spacing: 12) { HStack(alignment: .top, spacing: 12) {
ZStack(alignment: .bottom) { VStack(alignment: .trailing, spacing: 2) {
VStack(alignment: .trailing, spacing: 2) { ZStack(alignment: .bottom) {
smallThumbnail smallThumbnail
.layoutPriority(1)
if !timeOnThumbnail, let timeLabel { ProgressView(value: watch?.progress ?? 44, total: 100)
Text(timeLabel) .frame(maxHeight: 4)
.font(.caption.monospacedDigit()) .progressViewStyle(LinearProgressViewStyle(tint: Color("AppRedColor")))
.foregroundColor(.secondary) .opacity(watch?.isShowingProgress ?? false ? 1 : 0)
}
} }
.layoutPriority(1)
ProgressView(value: watch?.progress ?? 44, total: 100) if !timeOnThumbnail, let timeLabel {
.frame(maxHeight: 4) Text(timeLabel)
.progressViewStyle(LinearProgressViewStyle(tint: Color("AppRedColor"))) .font(.caption.monospacedDigit())
.opacity(watch?.isShowingProgress ?? false ? 1 : 0) .foregroundColor(.secondary)
}
} }
VStack(alignment: .leading, spacing: 2) { VStack(alignment: .leading, spacing: 2) {