Change condition of VideoPlayer's ToggleOverlay (#515)

This commit is contained in:
Kwangmin Bae 2022-08-13 02:50:55 +09:00 committed by GitHub
parent 46337961a8
commit 70b75df110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()