---
title: delegate
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiimagepickercontroller/delegate
---

# delegate

The image picker’s delegate object.

## Declaration

```swift
weak var delegate: (any UIImagePickerControllerDelegate & UINavigationControllerDelegate)? { get set }
```

## Discussion

Discussion The delegate receives notifications when the user picks an image or movie, or exits the picker interface. The delegate also decides when to dismiss the picker interface, so you must provide a delegate to use a picker. If this property is nil, the picker is dismissed immediately if you try to show it. For information about the methods you can implement for your delegate object, see UIImagePickerControllerDelegate.

## See Also

### Responding to interactions with the picker

- [UIImagePickerControllerDelegate](uikit/uiimagepickercontrollerdelegate.md)
