From 5cfcffc8858907e035e7ba34473304ab3f26103c Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 25 May 2023 18:02:38 +0200 Subject: [PATCH] Show loading video --- Shared/Player/Video Details/VideoDetails.swift | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Shared/Player/Video Details/VideoDetails.swift b/Shared/Player/Video Details/VideoDetails.swift index fe1c836b..b97b3f6d 100644 --- a/Shared/Player/Video Details/VideoDetails.swift +++ b/Shared/Player/Video Details/VideoDetails.swift @@ -44,10 +44,16 @@ struct VideoDetails: View { VStack(alignment: .leading, spacing: 2) { HStack { - Text(model.videoForDisplay?.channel.name ?? "Yattee") - .font(.subheadline) - .fontWeight(.semibold) - .lineLimit(1) + if let name = model.videoForDisplay?.channel.name, !name.isEmpty { + Text(name) + .font(.subheadline) + .fontWeight(.semibold) + .lineLimit(1) + } else if model.videoBeingOpened != nil { + Text("Yattee") + .font(.subheadline) + .redacted(reason: .placeholder) + } if let video, !video.isLocal { Group {