From afa004933383ad3881d031f66b2a23257fee7763 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 22 Apr 2023 14:26:57 +0200 Subject: [PATCH] Improve placeholders --- Shared/Player/Video Details/VideoDetails.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shared/Player/Video Details/VideoDetails.swift b/Shared/Player/Video Details/VideoDetails.swift index f1e5818f..8b482d4c 100644 --- a/Shared/Player/Video Details/VideoDetails.swift +++ b/Shared/Player/Video Details/VideoDetails.swift @@ -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) } }