Fix tvOS player dismiss animation

This commit is contained in:
Arkadiusz Fal 2022-01-05 17:08:48 +01:00
parent 16a3a4728d
commit ac755d0ee6

View File

@ -123,12 +123,12 @@ extension PlayerViewController: AVPlayerViewControllerDelegate {
true true
} }
func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {} func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {
func playerViewControllerDidEndDismissalTransition(_: AVPlayerViewController) {
dismiss(animated: false) dismiss(animated: false)
} }
func playerViewControllerDidEndDismissalTransition(_: AVPlayerViewController) {}
func playerViewController( func playerViewController(
_: AVPlayerViewController, _: AVPlayerViewController,
willBeginFullScreenPresentationWithAnimationCoordinator _: UIViewControllerTransitionCoordinator willBeginFullScreenPresentationWithAnimationCoordinator _: UIViewControllerTransitionCoordinator