YBIBToastView.h 595 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // YBIBToastView.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/6/20.
  6. // Copyright © 2019 波儿菜. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIView (YBIBToast)
  11. - (void)ybib_showHookToast:(NSString *)text;
  12. - (void)ybib_showForkToast:(NSString *)text;
  13. - (void)ybib_hideToast;
  14. @end
  15. typedef NS_ENUM(NSInteger, YBIBToastType) {
  16. YBIBToastTypeNone,
  17. YBIBToastTypeHook,
  18. YBIBToastTypeFork
  19. };
  20. @interface YBIBToastView : UIView
  21. - (void)showWithText:(NSString *)text type:(YBIBToastType)type;
  22. @end
  23. NS_ASSUME_NONNULL_END