Files
keyboard/keyBoard/Class/Guard/V/KBKeyboardMaskView.h
2025-11-28 16:06:34 +08:00

28 lines
858 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.

//
// KBKeyboardMaskView.h
// keyBoard
//
// Created by Mac on 2025/11/27.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/// 覆盖在 KBGuideVC 上方的“请选择自家键盘”蒙层
/// - 左上角:返回箭头
/// - 中间:播放引导视频的区域(宽=屏幕宽,高=300
/// - 点击任意空白区域:回调给外部(用于激活输入框)
@interface KBKeyboardMaskView : UIView
@property (nonatomic, strong, readonly) UIButton *backButton;
/// 点击蒙层空白时回调(不包括 backButton
@property (nonatomic, copy) void (^tapHandler)(void);
/// 更新内部视频与键盘的相对位置,保证不被遮挡
- (void)updateForKeyboardHeight:(CGFloat)kbHeight
duration:(NSTimeInterval)duration
curve:(UIViewAnimationOptions)curve;
@end
NS_ASSUME_NONNULL_END