Apple Signing SwiftUI

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)") }}

--

--

iOS Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store