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

# init(_:request:onCompletion:)

Creates a verify identity button that starts the identity authorization flow, with a completion handler.

```
nonisolated init(_ label: VerifyIdentityWithWalletButtonLabel = .verifyIdentity, request: PKIdentityRequest, onCompletion: @escaping (Result<PKIdentityDocument, any Error>) -> Void)
```

## Parameters

`label`

The button’s label.

`request`

The identity request to make when a person taps the button.

`onCompletion`

The completion handler the framework calls when finishing the authorization flow.

- `result`: A result that contains an identity document, if successful; otherwise, an error.

---

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)