<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKAddSecureElementPassViewController/delegate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKAddSecureElementPassViewController(py)delegate"
  },
  "title" : "delegate"
}
-->

# delegate

An object that acts as the view controller’s delegate.

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

## Discussion

The delegate must adopt the [`PKAddSecureElementPassViewControllerDelegate`](/documentation/PassKit/PKAddSecureElementPassViewControllerDelegate) protocol. The view controller doesn’t retain the delegate.

---

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)