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() {
|
private func toggleOverlay() {
|
||||||
guard let overlayHostingController = currentOverlayHostingController else { return }
|
if viewModel.isHiddenOverlay {
|
||||||
|
|
||||||
if overlayHostingController.view.alpha < 1 {
|
|
||||||
showOverlay()
|
showOverlay()
|
||||||
} else {
|
} else {
|
||||||
hideOverlay()
|
hideOverlay()
|
||||||
|
|
Loading…
Reference in New Issue