Apple Signing SwiftUI

Ronak Patel
May 27, 2021

The easiest way to Sign in with Apple using SwiftUI.

SignInWithAppleButton
The view that creates the Sign in with Apple button for display.


SignInWithAppleButton
(.signIn) { request in
request.requestedScopes = [.email , .fullName]}
onCompletion: { result in
switch result { case .success(let authResults): print("Authorisation successful") case .failure(let error): print("Authorisation failed: \(error.localizedDescription)") }}

--

--