1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 06:40:32 +05:30

Minor loading UI improvement

This commit is contained in:
Arkadiusz Fal 2022-07-05 19:21:13 +02:00
parent a9717724af
commit d1e00fa470

View File

@ -260,7 +260,9 @@ struct VideoDetails: View {
}
}
var videoProperties: some View {
@ViewBuilder var videoProperties: some View {
Group {
if player.videoBeingOpened.isNil {
HStack(spacing: 2) {
publishedDateSection
Spacer()
@ -285,6 +287,26 @@ struct VideoDetails: View {
}
}
}
} else {
HStack(spacing: 2) {
Text("Date placeholder")
Spacer()
HStack(spacing: 4) {
Image(systemName: "eye")
Text("1000")
Image(systemName: "eye")
Text("100")
Image(systemName: "eye")
Text("10")
}
}
.redacted(reason: .placeholder)
}
}
.font(.system(size: 12))
.foregroundColor(.secondary)
}