iOS: hasNotch implements

This commit is contained in:
王劲鹏
2020-03-19 11:52:02 +08:00
committed by osborn
parent b626eb3071
commit ef0e53a7ac
3 changed files with 12 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ - (instancetype)init {
@"screenWidth": @([[UIScreen mainScreen] bounds].size.width),
@"screenHeight": @([[UIScreen mainScreen] bounds].size.height),
@"statusBarHeight": @([[UIApplication sharedApplication] statusBarFrame].size.height),
@"hasNotch": @(hasNotch()),
@"deviceBrand": @"Apple",
@"deviceModel": platform,
};