mirror of
https://github.com/yattee/yattee.git
synced 2025-04-29 16:30:32 +05:30
Don't show not available details
This commit is contained in:
parent
9bde57e4eb
commit
441f3c9e80
@ -235,41 +235,35 @@ struct VideoDetails: View {
|
|||||||
Text("•")
|
Text("•")
|
||||||
|
|
||||||
HStack(spacing: 4) {
|
HStack(spacing: 4) {
|
||||||
Image(systemName: "eye")
|
if player.videoBeingOpened != nil || video?.viewsCount != nil {
|
||||||
|
Image(systemName: "eye")
|
||||||
|
}
|
||||||
|
|
||||||
if let views = video?.viewsCount {
|
if let views = video?.viewsCount {
|
||||||
Text(views)
|
Text(views)
|
||||||
} else {
|
} else if player.videoBeingOpened != nil {
|
||||||
if player.videoBeingOpened == nil {
|
Text("1,234M").redacted(reason: .placeholder)
|
||||||
Text("?")
|
|
||||||
} else {
|
|
||||||
Text("1,234M").redacted(reason: .placeholder)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Image(systemName: "hand.thumbsup")
|
if player.videoBeingOpened != nil || video?.likesCount != nil {
|
||||||
|
Image(systemName: "hand.thumbsup")
|
||||||
|
}
|
||||||
|
|
||||||
if let likes = video?.likesCount {
|
if let likes = video?.likesCount {
|
||||||
Text(likes)
|
Text(likes)
|
||||||
} else {
|
} else if player.videoBeingOpened == nil {
|
||||||
if player.videoBeingOpened == nil {
|
Text("1,234M").redacted(reason: .placeholder)
|
||||||
Text("?")
|
|
||||||
} else {
|
|
||||||
Text("1,234M").redacted(reason: .placeholder)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if enableReturnYouTubeDislike {
|
if enableReturnYouTubeDislike {
|
||||||
Image(systemName: "hand.thumbsdown")
|
if player.videoBeingOpened != nil || video?.dislikesCount != nil {
|
||||||
|
Image(systemName: "hand.thumbsdown")
|
||||||
|
}
|
||||||
|
|
||||||
if let dislikes = video?.dislikesCount {
|
if let dislikes = video?.dislikesCount {
|
||||||
Text(dislikes)
|
Text(dislikes)
|
||||||
} else {
|
} else if player.videoBeingOpened == nil {
|
||||||
if player.videoBeingOpened == nil {
|
Text("1,234M").redacted(reason: .placeholder)
|
||||||
Text("?")
|
|
||||||
} else {
|
|
||||||
Text("1,234M").redacted(reason: .placeholder)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user