WWSignInWith3rd_Apple

main

Use native Apple third-party login.
William-Weng/WWSignInWith3rd_Apple

WWSignInWith3rd_Apple

Swift-5.6 iOS-14.0 Swift Package Manager-SUCCESS LICENSE

  • Use native Apple third-party login.
  • 使用原生的Apple第三方登入。

dependencies: [
    .package(url: "https://github.com/William-Weng/WWSignInWith3rd_Apple.git", .upToNextMajor(from: "1.0.0"))
]

Function - 可用函式

函式 功能
login(for:completion:) 彈出Apple登入視窗 - 要加入.entitlements
logout() Apple登入 -> 沒有登出功能 => 要自己去設定
loginButton(with:cornerRadius:type:style:) 產生SignInWithApple的原生按鈕 / 按鈕按下後的功能

Example

import UIKit
import WWPrint
import WWSignInWith3rd_Apple

final class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func signInWithApple(_ sender: UIButton) {
        
        WWSignInWith3rd.Apple.shared.login { result in
            wwPrint(result)
        }
    }
}

Description

  • Swift Tools 5.6.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Apr 15 2024 04:35:02 GMT-0900 (Hawaii-Aleutian Daylight Time)