Files
keyboard/keyBoard/Class/Login/V/KBLoginPopView.h
2025-11-12 21:23:31 +08:00

29 lines
815 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// KBLoginPopView.h
// 主 App 登录弹窗自定义视图(给 LSTPopView 使用)
//
// 说明:
// - 仅负责展示 UI 与回调,不直接触发 Apple 登录;
// - 外层通过 LSTPopView 承载,点击按钮后先关闭弹窗,再由外层触发 Apple 登录。
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface KBLoginPopView : UIView
/// 关闭按钮回调(外层收到后可调用 [pop dismiss]
@property (nonatomic, copy, nullable) void (^closeHandler)(void);
/// 点击“用 Apple 登录”回调(外层收到后:先 dismiss 弹窗,再触发 Apple 登录)
@property (nonatomic, copy, nullable) void (^appleLoginHandler)(void);
/// 指定宽度初始化(高度内部自适应)
- (instancetype)initWithWidth:(CGFloat)width;
@end
NS_ASSUME_NONNULL_END