From 1efd9e2b90fea6028d564448610a04a686eff8f5 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 8 Jun 2023 12:11:44 +0200 Subject: [PATCH] Fix hiding overlays --- Model/Player/Backends/AVPlayerBackend.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/Player/Backends/AVPlayerBackend.swift b/Model/Player/Backends/AVPlayerBackend.swift index 06241c66..21aaabde 100644 --- a/Model/Player/Backends/AVPlayerBackend.swift +++ b/Model/Player/Backends/AVPlayerBackend.swift @@ -719,10 +719,10 @@ final class AVPlayerBackend: PlayerBackend { } #if os(iOS) - ControlOverlaysModel.shared.hide() - model.navigation.presentingPlaybackSettings = false - if model.playingFullScreen { + ControlOverlaysModel.shared.hide() + model.navigation.presentingPlaybackSettings = false + model.onPlayStream.append { _ in self.controller.enterFullScreen(animated: true) }