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

# stopPictureInPicture()

Stops Picture in Picture, if active.

```
func stopPictureInPicture()
```

## Discussion

Regardless of how Picture in Picture stops, the controller calls the delegate’s [`pictureInPictureControllerWillStopPictureInPicture(_:)`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerWillStopPictureInPicture(_:)) method. When the PiP animation completes, the controller finalizes the session by calling the delegate’s [`pictureInPictureControllerDidStopPictureInPicture(_:)`](/documentation/AVKit/AVPictureInPictureControllerDelegate/pictureInPictureControllerDidStopPictureInPicture(_:)) 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)