Change condition of VideoPlayer's ToggleOverlay (#515)
This commit is contained in:
parent
46337961a8
commit
70b75df110
|
@ -728,9 +728,7 @@ extension VLCPlayerViewController {
|
|||
}
|
||||
|
||||
private func toggleOverlay() {
|
||||
guard let overlayHostingController = currentOverlayHostingController else { return }
|
||||
|
||||
if overlayHostingController.view.alpha < 1 {
|
||||
if viewModel.isHiddenOverlay {
|
||||
showOverlay()
|
||||
} else {
|
||||
hideOverlay()
|
||||
|
|
Loading…
Reference in New Issue