<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -",
    "macCatalyst: 18.1.0 -",
    "macOS: 15.1.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImagePlayground",
  "identifier" : "/documentation/ImagePlayground/ImagePlaygroundViewController/Delegate-swift.protocol/imagePlaygroundViewController(_:didCreateImageAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "s:15ImagePlayground0aB14ViewControllerC8DelegateP05imagebcD0_09didCreateA2AtyAC_10Foundation3URLVtF"
  },
  "title" : "imagePlaygroundViewController(_:didCreateImageAt:)"
}
-->

# imagePlaygroundViewController(_:didCreateImageAt:)

Returns the generated image to the delegate.

```
@MainActor @objc func imagePlaygroundViewController(_ imagePlaygroundViewController: ImagePlaygroundViewController, didCreateImageAt imageURL: URL)
```

## Parameters

`imagePlaygroundViewController`

The view controller that sent the
notification.

`imageURL`

The location of the generated image. The file will live inside
a temporary folder of your app sandbox. The app should move it to a
permanent location or clean it up when it has finished using the file.

## Discussion

Use this method to retrieve the image at the specified location. After
you finish retrieving the image, dismiss the [`ImagePlaygroundViewController`](/documentation/ImagePlayground/ImagePlaygroundViewController)
from your app’s interface.

---

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)