text: //
  //  YMToastConfig.h
  //  YMToast
  //
  
  #import <UIKit/UIKit.h>
  #import <YMTCloudClassroom/YMSystemUtil.h>
  
  #define kToastConfig ([YMToastConfig sharedInstance])
  #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_7_0
  #define kYMToastMultilineTextSize(text, font, maxSize) [text length] > 0 ? [text \
  boundingRectWithSize:maxSize options:(NSStringDrawingUsesLineFragmentOrigin) \
  attributes:@{NSFontAttributeName:font} context:nil].size : CGSizeZero;
  #else
  #define kYMToastMultilineTextSize(text, font, maxSize) [text length] > 0 ? [text \
  sizeWithFont:font constrainedToSize:maxSize] : CGSizeZero;
  #endif
  #define kYMToastScreenWidth ([UIScreen mainScreen].bounds.size.width)
  #define kYMToastScreenHeight ([UIScreen mainScreen].bounds.size.height)
  
  static inline BOOL Toast_isIphoneX() {
      BOOL result = NO;
      if (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPhone) {
          return result;
      }
      if (@available(iOS 11.0, *)) {
          UIWindow *mainWindow = [YMSystemUtil getCurrentWindow];
          if (mainWindow.safeAreaInsets.bottom > 0.0) {
              result = YES;
          }
      }
      return result;
  }
  
  @interface YMToastConfig : NSObject
  - (instancetype)init NS_UNAVAILABLE;
  + (instancetype)new NS_UNAVAILABLE;
  
  + (instancetype)sharedInstance;
  
  @property (nonatomic, assign) BOOL showMask;
  @property (nonatomic, assign) BOOL maskCoverNav;
  @property (nonatomic, assign) BOOL alwaysResetConfig;
  
  @property (nonatomic, strong) UIColor *maskColor;
  @property (nonatomic, strong) UIColor *backColor;
  @property (nonatomic, strong) UIColor *iconColor;
  @property (nonatomic, strong) UIColor *textColor;
  
  @property (nonatomic, assign) CGSize tipImageSize;
  
  @property (nonatomic, assign) CGFloat padding;
  @property (nonatomic, assign) CGFloat cornerRadius;
  @property (nonatomic, assign) CGFloat imageCornerRadius;
  @property (nonatomic, assign) CGFloat fontSize;
  @property (nonatomic, assign) CGFloat minWidth;
  
  - (void)resetConfig;
  
  @end
  