// // HDLSceneSiri.h // HDLSceneSiriDemo // // Created by 陈嘉乐 on 2021/11/17. // #import NS_ASSUME_NONNULL_BEGIN // APP Screen #define APP_SCREEN_BOUNDS [[UIScreen mainScreen] bounds] #define APP_SCREEN_HEIGHT (APP_SCREEN_BOUNDS.size.height) #define APP_SCREEN_WIDTH (APP_SCREEN_BOUNDS.size.width) #define APP_STATUS_FRAME [UIApplication sharedApplication].statusBarFrame // 是否是IPhoneX的设备 #define IPhoneX ([UIApplication sharedApplication].statusBarFrame.size.height >= 44) #define APP_TOP_BAR_HEIGHT (IPhoneX ? 88 : 64) #define APP_STATUS_BAR_HEIGHT (IPhoneX ? 44 : 20) #define APP_TOOL_BAR_HEIGHT 49 #define APP_TAB_BAR_HEIGHT (IPhoneX ? (49 + 34): 49) #define APP_TAB_BOTTOM_HEIGHT (IPhoneX ? 34 : 0) #define APP_CONTENT_WIDTH (APP_SCREEN_BOUNDS.size.width) #define APP_CONTENT_HEIGHT (APP_SCREEN_HEIGHT - APP_TOP_BAR_HEIGHT - APP_TAB_BAR_HEIGHT) #define APP_VISIBLE_HEIGHT (APP_SCREEN_HEIGHT - APP_TOP_BAR_HEIGHT) #define APP_CONTENT_HEIGHT_2 (APP_SCREEN_HEIGHT - APP_STATUS_BAR_HEIGHT - APP_TAB_BAR_HEIGHT) // WEAKSELF_AT #define WEAKSELF_AT __weak __typeof(&*self)weakSelf_AT = self; #define HEXCOLORA(rgbValue, a) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:a] // 字体颜色 #define COLOR_TEXT HEXCOLORA(0x222222,1.0) // APP_UIFont #define APP_UIFont @"PingFangSC-Regular"//苹方-简 常规体 #define APP_UIFont_BOLD @"PingFangSC-Semibold"//苹方-简 中粗体 #define APP_UIFont_Medium @"PingFangSC-Medium"//苹方-简 中黑体 #define Get_FontWithSize(s) [UIFont fontWithName:APP_UIFont size:s] #define Get_FontBoldWithSize(s) [UIFont fontWithName:APP_UIFont_BOLD size:s] #define Get_FontMediumWithSize(s) [UIFont fontWithName:APP_UIFont_Medium size:s] @interface HDLSceneSiri : NSObject @end NS_ASSUME_NONNULL_END