Apple Signing SwiftUI


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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Jailbreak iPhone 11 Pro iOS 14

GeometryReader in SwiftUI

OnCollisionEnter Vs. OnTriggerEnter — which one do I use?

使用Prototype Cell自訂表格視圖

Jailbreak iOS 13 to 13.5.1

Top 10 Most Useful Xcode Shortcuts for Navigation

Is Trying to index into String really hard?

Stack Views in Swift

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
Ronak Patel

Ronak Patel

iOS Developer

More from Medium

SwiftUI Tutorial: Searchable

SwiftUI — Make Content Scrollable when DynamicFont scales up

DRY Up your SwiftUI Previews

How to show one view over another in SwiftUI