Improve placeholders

This commit is contained in:
Arkadiusz Fal
2022-07-11 19:44:25 +02:00
parent fa0784e5d9
commit fda4013907
2 changed files with 36 additions and 44 deletions

View File

@@ -236,14 +236,17 @@ struct ControlsBar: View {
Text(video.author)
.font(.system(size: 12))
if !presentingControls,
let channel = model.currentVideo?.channel,
let subsriptions = channel.subscriptionsString
{
if !presentingControls {
HStack(spacing: 2) {
Image(systemName: "person.2.fill")
Text(subsriptions)
if let channel = model.currentVideo?.channel {
if let subscriptions = channel.subscriptionsString {
Text(subscriptions)
} else {
Text("1234").redacted(reason: .placeholder)
}
}
}
.padding(.leading, 4)
.font(.system(size: 9))