From d546c0a976d57190071c80a4a3ff21b9cbf3f70b Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 12 Feb 2026 06:00:14 +0100 Subject: [PATCH] Fix subscriber count layout shift in VideoInfoView channel row --- Yattee/Views/Video/VideoInfoView.swift | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Yattee/Views/Video/VideoInfoView.swift b/Yattee/Views/Video/VideoInfoView.swift index 45e06924..482cd4a7 100644 --- a/Yattee/Views/Video/VideoInfoView.swift +++ b/Yattee/Views/Video/VideoInfoView.swift @@ -780,12 +780,17 @@ struct VideoInfoView: View { .fontWeight(.medium) .lineLimit(1) - if let subscribers = enrichedAuthor.formattedSubscriberCount { - Text(subscribers) - .font(.caption) - .foregroundStyle(.secondary) - .lineLimit(1) + Group { + if let subscribers = enrichedAuthor.formattedSubscriberCount { + Text(subscribers) + } else if isLoadingVideoDetails && video.supportsAPIStats { + Text("1.2M subscribers") + .redacted(reason: .placeholder) + } } + .font(.caption) + .foregroundStyle(.secondary) + .lineLimit(1) } } }