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

# delegate

The delegate that handles popover-related messages.

## Declaration

```swift
weak var delegate: (any UIPopoverPresentationControllerDelegate)? { get set }
```

## Discussion

Discussion At various points during the presentation process, the popover presentation controller calls methods of its delegate to give that object a chance to respond. You might use a delegate to further configure the popover presentation controller or to respond to user-initiated actions relating to the popover. For example, immediately prior to displaying the popover, the presentation controller calls the prepareForPopoverPresentation(_:) method of the delegate object. For more information about the methods that you can implement in your delegate object, see UIPopoverPresentationControllerDelegate.

## See Also

### Customizing the popover behavior

- [UIPopoverPresentationControllerDelegate](uikit/uipopoverpresentationcontrollerdelegate.md)
