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
}
func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {}
func playerViewControllerDidEndDismissalTransition(_: AVPlayerViewController) {
func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {
dismiss(animated: false)
}
func playerViewControllerDidEndDismissalTransition(_: AVPlayerViewController) {}
func playerViewController(
_: AVPlayerViewController,
willBeginFullScreenPresentationWithAnimationCoordinator _: UIViewControllerTransitionCoordinator