Hide VideoActions Bar when no buttons is visible

Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
Toni Förster
2024-08-28 12:32:38 +02:00
parent 59da0e71b6
commit 9510d91d61
2 changed files with 20 additions and 9 deletions

View File

@@ -86,6 +86,10 @@ struct VideoActions: View {
}
}
func isAnyActionVisible() -> Bool {
return Action.allCases.contains { isVisible($0) }
}
func isActionable(_ action: Action) -> Bool {
switch action {
case .share: