Avoid hiding player controls overlay when VoiceOver is enabled

This commit is contained in:
David Cordero 2022-01-17 20:36:17 +01:00
parent 68f0eb8cf5
commit d7c8afa917
1 changed files with 2 additions and 0 deletions

View File

@ -489,6 +489,8 @@ extension VLCPlayerViewController {
}
private func hideOverlay() {
guard !UIAccessibility.isVoiceOverRunning else { return }
guard let overlayHostingController = currentOverlayHostingController else { return }
guard overlayHostingController.view.alpha != 0 else { return }