mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 08:18:19 +00:00
Minor loading UI improvement
This commit is contained in:
parent
17aeef9af7
commit
d81b8abe93
@ -260,7 +260,9 @@ struct VideoDetails: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var videoProperties: some View {
|
@ViewBuilder var videoProperties: some View {
|
||||||
|
Group {
|
||||||
|
if player.videoBeingOpened.isNil {
|
||||||
HStack(spacing: 2) {
|
HStack(spacing: 2) {
|
||||||
publishedDateSection
|
publishedDateSection
|
||||||
Spacer()
|
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))
|
.font(.system(size: 12))
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user