<!--
{
  "availability" : [
    "tvOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVPlayerViewControllerDelegate/playerViewController(_:willTransitionToVisibilityOfTransportBar:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(pl)AVPlayerViewControllerDelegate(im)playerViewController:willTransitionToVisibilityOfTransportBar:withAnimationCoordinator:"
  },
  "title" : "playerViewController(_:willTransitionToVisibilityOfTransportBar:with:)"
}
-->

# playerViewController(_:willTransitionToVisibilityOfTransportBar:with:)

Tells the delegate when the transport bar’s visibility is about to change.

```
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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)