重构了KBFunctionView
This commit is contained in:
28
CustomKeyboard/View/Function/KBStreamOverlayView.h
Normal file
28
CustomKeyboard/View/Function/KBStreamOverlayView.h
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user