---
title: "imagePlaygroundViewController(_:didCreateImageAt:)"
framework: imageplayground
role: symbol
role_heading: Instance Method
path: "imageplayground/imageplaygroundviewcontroller/delegate-swift.protocol/imageplaygroundviewcontroller(_:didcreateimageat:)"
---

# imagePlaygroundViewController(_:didCreateImageAt:)

Returns the generated image to the delegate.

## Declaration

```swift
@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

Discussion Use this method to retrieve the image at the specified location. After you finish retrieving the image, dismiss the ImagePlaygroundViewController from your app’s interface.
