I am trying to detect when the AVPlayerViewController is in full-screen mode, but I\'m having a difficult time achieving this. I\'d like to know when the user s
Starting from iOS 12 we can use these AVPlayerViewControllerDelegate delegate methods :
func playerViewController(AVPlayerViewController, willBeginFullScreenPresentationWithAnimationCoordinator: UIViewControllerTransitionCoordinator)
func playerViewController(AVPlayerViewController, willEndFullScreenPresentationWithAnimationCoordinator: UIViewControllerTransitionCoordinator)