SIWA

0.1

SignIn With Apple Button for SwiftUI
mtfum/SIWA

What's New

2020-03-05T11:29:24Z

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 in
  switch 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.

struct Credential {
  let idToken: String
  let rawNonce: 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.

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Sep 10 2023 14:35:27 GMT-0900 (Hawaii-Aleutian Daylight Time)