<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCVASCommandConfiguration/init(vasMode:passTypeIdentifier:url:)-9bh8w",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "c:objc(cs)NFCVASCommandConfiguration(im)initWithVASMode:passTypeIdentifier:url:"
  },
  "title" : "init(vasMode:passTypeIdentifier:url:)"
}
-->

# init(vasMode:passTypeIdentifier:url:)

Creates a VAS command configuration object.

```
init(vasMode mode: NFCVASCommandConfiguration.Mode, passTypeIdentifier: String, url: URL?)
```

## Parameters

`mode`

A VAS operation mode.

`passTypeIdentifier`

A type identifier for the Wallet pass.

`url`

A URL when `mode` is `VASModeURLOnly`; otherwise set to `nil`. The maximum length of the URL is 64 characters, including the schema.

## Return Value

A newly initialized VAS command configuration object.

---

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)