init(_:onRequest:onCompletion:)
Creates a Sign in with Apple button.
Declaration
nonisolated init(_ label: SignInWithAppleButton.Label = .signIn, onRequest: @escaping (ASAuthorizationAppleIDRequest) -> Void, onCompletion: @escaping (Result<ASAuthorization, any Error>) -> Void)Parameters
- label:
The label that appears on the button.
- onRequest:
The authorization request for an Apple ID.
- onCompletion:
The completion handler that the system calls when the sign-in completes.