mirror of
https://github.com/yattee/yattee.git
synced 2025-10-27 02:22:07 +00:00
Hide VideoActions Bar when no buttons is visible
Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user