apple login

This commit is contained in:
2025-10-30 14:29:11 +08:00
parent f58bf61500
commit 85a3694e35
7 changed files with 388 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
// LoginViewController.h
// 仅包含“Apple 登录”的登录页
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LoginViewController : UIViewController
/// Apple 登录成功回调。包含 userIdentifier首次授权可能包含 email/fullName。
@property (nonatomic, copy, nullable) void (^onLoginSuccess)(NSDictionary *userInfo);
/// 登录失败或取消时回调(返回错误)。
@property (nonatomic, copy, nullable) void (^onLoginFailure)(NSError *error);
@end
NS_ASSUME_NONNULL_END