delegate
The delegate that handles popover-related messages.
Declaration
weak var delegate: (any UIPopoverPresentationControllerDelegate)? { get set }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.