//
//  CustomDefine.h
//  AIIM
//
//  Created by qitewei on 2025/5/5.
//

#ifndef CustomDefine_h
#define CustomDefine_h

/// 屏幕宽度，会根据横竖屏的变化而变化
#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)

/// 屏幕高度，会根据横竖屏的变化而变化
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
#define SCREEN_TOP [UIDevice navigationFullHeight]      //顶部状态栏加导航栏高度
#define NAVIGATIONBAR_HEIGHT [UIDevice navigationBarHeight]
#define SCREEN_BOTTOM (isIphoneX ? 83 : 49)     //底部tabbar高度
#define SCREEN_X_BTM  [UIDevice safeDistanceBottom]     //刘海屏底部高度
#define STATUS_Height  [UIDevice statusBarHeight]      //状态栏高度
#define WINDOW      [UIApplication sharedApplication].delegate.window

#pragma mark - Image
#define kImageMake(name) [UIImage imageNamed:name]

#pragma mark - Font
#define SYSFONT(size) [UIFont systemFontOfSize:size]
#define SYSMFONT(size) [UIFont systemFontOfSize:size weight:UIFontWeightMedium]
#define SYSBFONT(size) [UIFont systemFontOfSize:size weight:UIFontWeightBold]
#define SYSHFONT(size) [UIFont systemFontOfSize:size weight:UIFontWeightHeavy]

/* URL*/
#define getURL(x)   [NSURL URLWithString:x]

#pragma mark weak
#define weakSelf(var) __weak typeof(var) weak##var = var;

#endif /* CustomDefine_h */
