playerViewController(_:willTransitionToVisibilityOfTransportBar:with:)
Tells the delegate when the transport bar’s visibility is about to change.
Declaration
optional func playerViewController(_ playerViewController: AVPlayerViewController, willTransitionToVisibilityOfTransportBar visible: Bool, with coordinator: any AVPlayerViewControllerAnimationCoordinator)Parameters
- playerViewController:
The player view controller.
- visible:
The transport bar’s new visibility.
- coordinator:
The animation coordinator to use to synchronize animations with the transport bar visibility.