mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Improve placeholders
This commit is contained in:
parent
28f346dee2
commit
afa0049333
@ -103,9 +103,9 @@ struct VideoDetails: View {
|
|||||||
Image(systemName: "hand.thumbsup")
|
Image(systemName: "hand.thumbsup")
|
||||||
}
|
}
|
||||||
|
|
||||||
if let likes = video?.likesCount {
|
if let likes = video?.likesCount, !likes.isEmpty {
|
||||||
Text(likes)
|
Text(likes)
|
||||||
} else if model.videoBeingOpened == nil {
|
} else {
|
||||||
Text("1,234M").redacted(reason: .placeholder)
|
Text("1,234M").redacted(reason: .placeholder)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,9 +114,9 @@ struct VideoDetails: View {
|
|||||||
Image(systemName: "hand.thumbsdown")
|
Image(systemName: "hand.thumbsdown")
|
||||||
}
|
}
|
||||||
|
|
||||||
if let dislikes = video?.dislikesCount {
|
if let dislikes = video?.dislikesCount, !dislikes.isEmpty {
|
||||||
Text(dislikes)
|
Text(dislikes)
|
||||||
} else if model.videoBeingOpened == nil {
|
} else {
|
||||||
Text("1,234M").redacted(reason: .placeholder)
|
Text("1,234M").redacted(reason: .placeholder)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user