<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/VerifyIdentityWithWalletButton/init(_:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)",
      "SwiftUI",
      "_PassKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:16_PassKit_SwiftUI30VerifyIdentityWithWalletButtonVAA0cD09EmptyViewVRszrlE_6actionACyAFGAA0efghI5LabelV_yyctcfc"
  },
  "title" : "init(_:action:)"
}
-->

# init(_:action:)

Creates a verify identity button that starts the identity authorization flow.

```
nonisolated init(_ label: VerifyIdentityWithWalletButtonLabel = .verifyIdentity, action: @escaping () -> Void)
```

## Parameters

`label`

The button’s label.

`action`

The action to perform when a person taps the button.

---

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)