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

# imagePlaygroundViewControllerDidCancel(_:)

Notifies the delegate that the person canceled the generation of the image.

## Declaration

```swift
@MainActor @objc optional func imagePlaygroundViewControllerDidCancel(_ imagePlaygroundViewController: ImagePlaygroundViewController)
```

## Parameters

- `imagePlaygroundViewController`: The view controller that sent the notification.

## Discussion

Discussion Use this method to dismiss the specified ImagePlaygroundViewController from your app’s interface.
