Skip to content

Commit

Permalink
Avoid settings menu being closed when controls disappear (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos authored May 16, 2024
1 parent 12d49c8 commit a8c91d9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Demo/Sources/Players/PlaybackView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,12 @@ private struct MainView: View {

@ViewBuilder
private func bottomButtons() -> some View {
if !shouldHideInterface {
HStack(spacing: 20) {
LiveButton(player: player, progressTracker: progressTracker)
settingsMenu()
FullScreenButton(layout: $layout)
}
HStack(spacing: 20) {
LiveButton(player: player, progressTracker: progressTracker)
settingsMenu()
FullScreenButton(layout: $layout)
}
.opacity(isFullScreen && shouldHideInterface ? 0 : 1)
}

@ViewBuilder
Expand Down

0 comments on commit a8c91d9

Please sign in to comment.