<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKAddPassesViewController/init(passes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKAddPassesViewController(im)initWithPasses:"
  },
  "title" : "init(passes:)"
}
-->

# init(passes:)

Initializes and returns a newly created add-passes view controller with an array of passes.

```
init?(passes: [PKPass])
```

## Parameters

`passes`

The passes for the view controller to display.

## Return Value

The initialized add-passes view controller object or `nil` if there was a problem initializing the object.

## Discussion

---

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)