TUIChatPopContextExtionView.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // TUIChatPopContextExtionView.h
  3. // TUIEmojiPlugin
  4. //
  5. // Created by wyl on 2023/12/1.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface TUIChatPopContextExtionItem : NSObject
  11. @property(nonatomic, copy) NSString *title;
  12. @property(nonatomic, strong) UIColor *titleColor;
  13. @property(nonatomic, strong) UIFont *titleFont;
  14. @property(nonatomic, assign) CGFloat weight;
  15. @property(nonatomic, strong) UIImage *markIcon;
  16. @property(nonatomic, assign) CGFloat itemHeight;
  17. @property(nonatomic, assign) BOOL needBottomLine;
  18. @property(nonatomic, copy) void (^actionHandler)(TUIChatPopContextExtionItem *item);
  19. - (instancetype)initWithTitle:(NSString *)title markIcon:(UIImage *)markIcon weight:(NSInteger)weight withActionHandler:(void (^)(id action))actionHandler;
  20. @end
  21. @interface TUIChatPopContextExtionView : UIView
  22. - (void)configUIWithItems:(NSMutableArray<TUIChatPopContextExtionItem *> *)items topBottomMargin:(CGFloat)topBottomMargin;
  23. @end
  24. NS_ASSUME_NONNULL_END