重构了KBFunctionView

This commit is contained in:
2025-11-12 16:03:30 +08:00
parent 62f3ddae4a
commit fea22aecab
6 changed files with 294 additions and 68 deletions

View File

@@ -0,0 +1,28 @@
//
// KBStreamOverlayView.h
// 自带关闭按钮的流式展示层,内部持有 KBStreamTextView。
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class KBStreamTextView, KBStreamOverlayView;
@protocol KBStreamOverlayViewDelegate <NSObject>
@optional
- (void)streamOverlayDidTapClose:(KBStreamOverlayView *)overlay;
@end
@interface KBStreamOverlayView : UIView
@property (nonatomic, strong, readonly) KBStreamTextView *textView;
@property (nonatomic, weak, nullable) id<KBStreamOverlayViewDelegate> delegate;
- (void)appendChunk:(NSString *)text;
- (void)finish;
@end
NS_ASSUME_NONNULL_END