Improve placeholders

This commit is contained in:
Arkadiusz Fal 2023-04-22 14:26:57 +02:00
parent 28f346dee2
commit afa0049333

View File

@ -103,9 +103,9 @@ struct VideoDetails: View {
Image(systemName: "hand.thumbsup")
}
if let likes = video?.likesCount {
if let likes = video?.likesCount, !likes.isEmpty {
Text(likes)
} else if model.videoBeingOpened == nil {
} else {
Text("1,234M").redacted(reason: .placeholder)
}
@ -114,9 +114,9 @@ struct VideoDetails: View {
Image(systemName: "hand.thumbsdown")
}
if let dislikes = video?.dislikesCount {
if let dislikes = video?.dislikesCount, !dislikes.isEmpty {
Text(dislikes)
} else if model.videoBeingOpened == nil {
} else {
Text("1,234M").redacted(reason: .placeholder)
}
}