<!--
{
  "availability" : [
    "iOS: 9.0.0 - 13.0.0",
    "iPadOS: 9.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: 9.0.0 - 13.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewControllerPreviewing/delegate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIViewControllerPreviewing(py)delegate"
  },
  "title" : "delegate"
}
-->

# delegate

The previewing view controller’s delegate for managing preview (peek) and commit (pop) view controllers.

```
var delegate: any UIViewControllerPreviewingDelegate { get }
```

## Discussion

Set a previewing view controller’s 3D Touch delegate when you register the view controller by calling its [`registerForPreviewing(with:sourceView:)`](/documentation/UIKit/UIViewController/registerForPreviewing(with:sourceView:)) method.

For information on the methods the delegate can implement, read [`UIViewControllerPreviewingDelegate`](/documentation/UIKit/UIViewControllerPreviewingDelegate).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)