From ac755d0ee64ae20c949b04203df7eb68d729066b Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 5 Jan 2022 17:08:48 +0100 Subject: [PATCH] Fix tvOS player dismiss animation --- Shared/Player/PlayerViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shared/Player/PlayerViewController.swift b/Shared/Player/PlayerViewController.swift index 4648b73f..088fadd4 100644 --- a/Shared/Player/PlayerViewController.swift +++ b/Shared/Player/PlayerViewController.swift @@ -123,12 +123,12 @@ extension PlayerViewController: AVPlayerViewControllerDelegate { true } - func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {} - - func playerViewControllerDidEndDismissalTransition(_: AVPlayerViewController) { + func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) { dismiss(animated: false) } + func playerViewControllerDidEndDismissalTransition(_: AVPlayerViewController) {} + func playerViewController( _: AVPlayerViewController, willBeginFullScreenPresentationWithAnimationCoordinator _: UIViewControllerTransitionCoordinator