SignIn With Apple Button for SwiftUI
Select Xcode menu File > Swift Packages > Add Package Dependency... and enter repository URL with GUI.
Repository: https://github.com/mtfum/SIWA
SIWA(){ result inswitch result {case.success(let credential):
// do something
case .failure(let error):
// do something
}}Button is ASAuthorizationAppleIDButton by default.
You can customize it!
Credentail in Result have idToken and rawNonce.
structCredential{letidToken:StringletrawNonce:String}There are no tests yet. I'm waiting for your PR!
Developed by @mtfum.
Contact me by Twitter @mtfum
SIWA is licensed under the MIT License.