WFCUMoreBoardView.h 709 B

12345678910111213141516171819202122232425
  1. //
  2. // WFCUMoreBoardView.h
  3. // WFChatUIKit
  4. //
  5. // Created by Rain on 2022/9/28.
  6. // Copyright © 2022 Wildfirechat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface MoreItem : NSObject
  11. @property(nonatomic, strong)UIImage *image;
  12. @property(nonatomic, strong)NSString *title;
  13. @property(nonatomic, strong)MoreItem *(^onClicked)(void);
  14. - (instancetype)initWithTitle:(NSString *)title image:(UIImage *)image callback:(MoreItem *(^)(void))onClicked;
  15. @end
  16. @interface WFCUMoreBoardView : UIView
  17. - (instancetype)initWithWidth:(CGFloat)width items:(NSArray<MoreItem *> *)items cancel:(void(^)(WFCUMoreBoardView *boardView))cancelBlock;
  18. - (void)dismiss;
  19. @end
  20. NS_ASSUME_NONNULL_END