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

# init(_:request:onCompletion:fallback:)

Creates a verify identity button that starts the identity authorization flow, with a fallback view to use if the app can’t start the flow.

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

## 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.

`fallback`

A view to display if the app can’t perform an identity request.

---

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)