添加按钮文字预览提示

This commit is contained in:
2025-11-20 21:11:27 +08:00
parent 6bdd111a3a
commit faa05e2a10
6 changed files with 168 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
//
// KBKeyPreviewView.h
// CustomKeyboard
//
#import <UIKit/UIKit.h>
@class KBKey;
NS_ASSUME_NONNULL_BEGIN
/// 按键按下时显示的气泡预览视图(类似系统键盘上方弹出的放大字母)。
@interface KBKeyPreviewView : UIView
/// 配置预览内容:字符与可选图标。
- (void)configureWithKey:(KBKey *)key icon:(nullable UIImage *)icon;
@end
NS_ASSUME_NONNULL_END