feat:Environment add scale

This commit is contained in:
pengfei.zhou
2020-04-23 15:38:37 +08:00
committed by osborn
parent d32f714050
commit 9e7c1f04ef
14 changed files with 36 additions and 32 deletions

View File

@@ -67,6 +67,7 @@ - (instancetype)init {
@"appVersion": infoDictionary[@"CFBundleShortVersionString"],
@"screenWidth": @([[UIScreen mainScreen] bounds].size.width),
@"screenHeight": @([[UIScreen mainScreen] bounds].size.height),
@"screenScale": @([[UIScreen mainScreen] scale]),
@"statusBarHeight": @([[UIApplication sharedApplication] statusBarFrame].size.height),
@"hasNotch": @(hasNotch()),
@"deviceBrand": @"Apple",