Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SIWA

SignIn With Apple Button for SwiftUI

Install

Swift Package Manager

Select Xcode menu File > Swift Packages > Add Package Dependency... and enter repository URL with GUI.

 Repository: https://github.com/mtfum/SIWA

Usage

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}

Tests

There are no tests yet. I'm waiting for your PR!

Information and Contact

Developed by @mtfum.

Contact me by Twitter @mtfum

License

SIWA is licensed under the MIT License.

About

SignIn With Apple Button for SwiftUI

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages