<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVPlayerViewControllerDelegate/playerViewControllerDidStopPictureInPicture(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(pl)AVPlayerViewControllerDelegate(im)playerViewControllerDidStopPictureInPicture:"
  },
  "title" : "playerViewControllerDidStopPictureInPicture(_:)"
}
-->

# playerViewControllerDidStopPictureInPicture(_:)

Tells the delegate when Picture in Picture stops.

```
optional func playerViewControllerDidStopPictureInPicture(_ playerViewController: AVPlayerViewController)
```

## Parameters

`playerViewController`

The player view controller.

## Discussion

Don’t restore your app’s user interface in your implementation of this method. Instead, do it in the [`playerViewController(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:)`](/documentation/AVKit/AVPlayerViewControllerDelegate/playerViewController(_:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:)) method.

---

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)