LenzHeader.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // LenzHeader.h
  3. // LenzCameraNativeModuleForRN-LenzCameraNativeModuleForRN
  4. //
  5. // Created by lr on 2023/3/8.
  6. //
  7. #ifndef LenzHeader_h
  8. #define LenzHeader_h
  9. #import "PCSTools.h"
  10. #import "UIImage+name.h"
  11. #import "NSString+Localization.h"
  12. #import <Masonry/Masonry.h>
  13. #import "UIImage+ext.h"
  14. #import "PCSMotionManager.h"
  15. #import "PCSThemeColorManager.h"
  16. #import "UIView+JKAdd.h"
  17. #import "UIColor+JKAdd.h"
  18. #define LOCALIZATION_STRING_KEY_DELETE_ALERT_BTN_TITLE_CONFIRM [@"btn-title-confirm" localization]
  19. #define LOCALIZATION_STRING_KEY_DELETE_ALERT_BTN_TITLE_CANCEL [@"btn-title-cancel" localization]
  20. #define LOCALIZATION_STRING_KEY_DELETE_IMAGE_ALERT_TEXT [@"delete-image-alert-text" localization]
  21. #define LOCALIZATION_STRING_KEY_NUM_OF_MOVIES [@"number-of-movies" localization]
  22. #define LOCALIZATION_STRING_KEY_NUM_OF_PHOTOS [@"number-of-photos" localization]
  23. #define LOCALIZATION_STRING_KEY_TIP_FOR_AI_PANORAMA [@"tip-for-ai-panorama" localization]
  24. #define LOCALIZATION_STRING_KEY_MODE_TITLE_MULTIPLE [@"mode-title-multiple" localization]
  25. #define LOCALIZATION_STRING_KEY_MODE_TITLE_SINGLE [@"mode-title-single" localization]
  26. #define LOCALIZATION_STRING_KEY_MODE_TITLE_MOVIE [@"mode-title-movie" localization]
  27. #define LOCALIZATION_STRING_KEY_MODE_TITLE_PANORAMIC [@"mode-title-panoramic" localization]
  28. #define LOCALIZATION_STRING_KEY_MODE_TITLE_AI_PANORAMIC [@"mode-title-ai-panoramic" localization]
  29. // iPhone带有安全区的或者刘海屏幕
  30. #define JK_IS_IPHONE_X ({ \
  31. BOOL iPhoneXSeries = NO; \
  32. if (@available(iOS 11.0, *)) { \
  33. UIWindow *mainWindow = [[[UIApplication sharedApplication] delegate] window]; \
  34. if (mainWindow.safeAreaInsets.bottom > 0.0) { \
  35. iPhoneXSeries = YES; \
  36. } \
  37. } \
  38. iPhoneXSeries; \
  39. })
  40. #endif /* LenzHeader_h */