iOS: enhancement for status bar height retrieval

This commit is contained in:
王劲鹏
2023-03-01 15:05:01 +08:00
committed by osborn
parent 63f8b87a1b
commit 15364618e1
3 changed files with 59 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ - (instancetype)init {
@"screenWidth": @(screenWidth),
@"screenHeight": @(screenHeight),
@"screenScale": @([[UIScreen mainScreen] scale]),
@"statusBarHeight": @([[UIApplication sharedApplication] statusBarFrame].size.height),
@"statusBarHeight": @(systemStatusBarHeight()),
@"hasNotch": @(hasNotch()),
@"deviceBrand": @"Apple",
@"deviceModel": platform,