Commit f0025b6e authored by Steven杜宇's avatar Steven杜宇

// 苹果登录提示

parent bf7a2b99
......@@ -88,9 +88,10 @@ extension YHAppleLoginManager: ASAuthorizationControllerDelegate, ASAuthorizatio
}
func handleAuthenticationError(_ error: ASAuthorizationError) {
if error.code != .canceled { // 非用户取消的错误
YHHUD.flash(message: "苹果登录失败 原因:\(error.localizedDescription)")
if error.code == .canceled || error.code == .unknown {
return
}
YHHUD.flash(message: "苹果登录失败 原因:\(error.localizedDescription)")
}
func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment