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

# playerViewControllerShouldDismiss(_:)

Asks the delegate object whether the player view controller dismisses itself upon request.

```
optional func playerViewControllerShouldDismiss(_ playerViewController: AVPlayerViewController) -> Bool
```

## Parameters

`playerViewController`

The player view controller.

## Return Value

`true` if the player view controller should dismiss itself; otherwise `false`.

## Discussion

If allowed, the player view controller dismisses itself with animation. If you’ve embedded the player view controller in another view, the delegate may need to manually dismiss the view controller.

---

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)