We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ea80b6 commit a2a01daCopy full SHA for a2a01da
FlexLib/Classes/FlexUtils.m
@@ -224,8 +224,8 @@ BOOL IsIphoneX(void)
224
225
if(@available(iOS 11.0,*)){
226
227
- UIWindow *mainWindow = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
228
- if(mainWindow.safeAreaInsets.bottom>0)
+ UIWindow *window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
+ if(window.safeAreaInsets.bottom>0)
229
{
230
iphoneX = 1;
231
}
0 commit comments