This commit is contained in:
2025-10-28 15:10:38 +08:00
parent 377e88b6db
commit 2f2f20cfc2
5 changed files with 225 additions and 42 deletions

View File

@@ -0,0 +1,30 @@
//
// KBKeyBoardMainView.h
// CustomKeyboard
//
// Created by Mac on 2025/10/28.
//
#import <UIKit/UIKit.h>
@class KBKeyBoardMainView, KBKey;
NS_ASSUME_NONNULL_BEGIN
@protocol KBKeyBoardMainViewDelegate <NSObject>
@optional
/// 键被点击的回调
- (void)keyBoardMainView:(KBKeyBoardMainView *)keyBoardMainView didTapKey:(KBKey *)key;
/// 顶部工具栏按钮点击回调index: 0~3
/// 需求:当 index == 0 时由外部KeyboardViewController决定是否切换到功能面板
- (void)keyBoardMainView:(KBKeyBoardMainView *)keyBoardMainView didTapToolActionAtIndex:(NSInteger)index;
@end
@interface KBKeyBoardMainView : UIView
@property (nonatomic, weak) id<KBKeyBoardMainViewDelegate> delegate;
@end
NS_ASSUME_NONNULL_END