mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Don't show not available details
This commit is contained in:
parent
9bde57e4eb
commit
441f3c9e80
@ -235,45 +235,39 @@ struct VideoDetails: View {
|
||||
Text("•")
|
||||
|
||||
HStack(spacing: 4) {
|
||||
if player.videoBeingOpened != nil || video?.viewsCount != nil {
|
||||
Image(systemName: "eye")
|
||||
}
|
||||
|
||||
if let views = video?.viewsCount {
|
||||
Text(views)
|
||||
} else {
|
||||
if player.videoBeingOpened == nil {
|
||||
Text("?")
|
||||
} else {
|
||||
} else if player.videoBeingOpened != nil {
|
||||
Text("1,234M").redacted(reason: .placeholder)
|
||||
}
|
||||
}
|
||||
|
||||
if player.videoBeingOpened != nil || video?.likesCount != nil {
|
||||
Image(systemName: "hand.thumbsup")
|
||||
}
|
||||
|
||||
if let likes = video?.likesCount {
|
||||
Text(likes)
|
||||
} else {
|
||||
if player.videoBeingOpened == nil {
|
||||
Text("?")
|
||||
} else {
|
||||
} else if player.videoBeingOpened == nil {
|
||||
Text("1,234M").redacted(reason: .placeholder)
|
||||
}
|
||||
}
|
||||
|
||||
if enableReturnYouTubeDislike {
|
||||
if player.videoBeingOpened != nil || video?.dislikesCount != nil {
|
||||
Image(systemName: "hand.thumbsdown")
|
||||
}
|
||||
|
||||
if let dislikes = video?.dislikesCount {
|
||||
Text(dislikes)
|
||||
} else {
|
||||
if player.videoBeingOpened == nil {
|
||||
Text("?")
|
||||
} else {
|
||||
} else if player.videoBeingOpened == nil {
|
||||
Text("1,234M").redacted(reason: .placeholder)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user