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

@@ -6,13 +6,21 @@
//
#import <UIKit/UIKit.h>
@class KBFunctionBarView, KBFunctionPasteView;
@class KBFunctionBarView, KBFunctionPasteView,KBFunctionView;
@protocol KBFunctionViewDelegate <NSObject>
@optional
- (void)functionView:(KBFunctionView *_Nullable)functionView didTapToolActionAtIndex:(NSInteger)index;
@end
NS_ASSUME_NONNULL_BEGIN
/// 整个功能面板视图顶部Bar + 粘贴区 + 标签列表 + 右侧操作按钮
@interface KBFunctionView : UIView
@property (nonatomic, weak) id<KBFunctionViewDelegate> delegate;
@property (nonatomic, strong, readonly) UICollectionView *collectionView; // 话术分类/标签列表
@property (nonatomic, strong, readonly) NSArray<NSString *> *items; // 简单数据源(演示用)