Show loading video

This commit is contained in:
Arkadiusz Fal 2023-05-25 18:02:38 +02:00
parent 9d2e6f117d
commit 5cfcffc885

View File

@ -44,10 +44,16 @@ struct VideoDetails: View {
VStack(alignment: .leading, spacing: 2) { VStack(alignment: .leading, spacing: 2) {
HStack { HStack {
Text(model.videoForDisplay?.channel.name ?? "Yattee") if let name = model.videoForDisplay?.channel.name, !name.isEmpty {
Text(name)
.font(.subheadline) .font(.subheadline)
.fontWeight(.semibold) .fontWeight(.semibold)
.lineLimit(1) .lineLimit(1)
} else if model.videoBeingOpened != nil {
Text("Yattee")
.font(.subheadline)
.redacted(reason: .placeholder)
}
if let video, !video.isLocal { if let video, !video.isLocal {
Group { Group {