mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Improve placeholders
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user