Contents

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.

Declaration

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.

See Also

Creating the button