---
title: "init(configuration:delegate:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/pkaddsecureelementpassviewcontroller/init(configuration:delegate:)"
---

# init(configuration:delegate:)

Creates a view controller using the specified pass configuration.

## Declaration

```swift
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

Discussion The delegate must adopt the PKAddSecureElementPassViewControllerDelegate protocol. The view controller doesn’t retain the delegate.
