<!--
{
  "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/init(configuration:delegate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKAddSecureElementPassViewController(im)initWithConfiguration:delegate:"
  },
  "title" : "init(configuration:delegate:)"
}
-->

# init(configuration:delegate:)

Creates a view controller using the specified pass configuration.

```
init?(configuration: PKAddSecureElementPassConfiguration, delegate: (any PKAddSecureElementPassViewControllerDelegate)?)
```

## Parameters

`configuration`

The configuration that the view controller uses to create a Secure Element pass.

`delegate`

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

## 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)