mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 22:13:41 +00:00
Minor loading UI improvement
This commit is contained in:
parent
a9717724af
commit
d1e00fa470
@ -260,29 +260,51 @@ struct VideoDetails: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var videoProperties: some View {
|
@ViewBuilder var videoProperties: some View {
|
||||||
HStack(spacing: 2) {
|
Group {
|
||||||
publishedDateSection
|
if player.videoBeingOpened.isNil {
|
||||||
Spacer()
|
HStack(spacing: 2) {
|
||||||
|
publishedDateSection
|
||||||
|
Spacer()
|
||||||
|
|
||||||
HStack(spacing: 4) {
|
HStack(spacing: 4) {
|
||||||
if let views = video?.viewsCount {
|
if let views = video?.viewsCount {
|
||||||
Image(systemName: "eye")
|
Image(systemName: "eye")
|
||||||
|
|
||||||
Text(views)
|
Text(views)
|
||||||
|
}
|
||||||
|
|
||||||
|
if let likes = video?.likesCount {
|
||||||
|
Image(systemName: "hand.thumbsup")
|
||||||
|
|
||||||
|
Text(likes)
|
||||||
|
}
|
||||||
|
|
||||||
|
if let likes = video?.dislikesCount {
|
||||||
|
Image(systemName: "hand.thumbsdown")
|
||||||
|
|
||||||
|
Text(likes)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
HStack(spacing: 2) {
|
||||||
|
Text("Date placeholder")
|
||||||
|
|
||||||
if let likes = video?.likesCount {
|
Spacer()
|
||||||
Image(systemName: "hand.thumbsup")
|
|
||||||
|
|
||||||
Text(likes)
|
HStack(spacing: 4) {
|
||||||
}
|
Image(systemName: "eye")
|
||||||
|
Text("1000")
|
||||||
if let likes = video?.dislikesCount {
|
|
||||||
Image(systemName: "hand.thumbsdown")
|
Image(systemName: "eye")
|
||||||
|
Text("100")
|
||||||
Text(likes)
|
|
||||||
|
Image(systemName: "eye")
|
||||||
|
Text("10")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.redacted(reason: .placeholder)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.font(.system(size: 12))
|
.font(.system(size: 12))
|
||||||
|
Loading…
Reference in New Issue
Block a user