Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 44ccc0c

Browse files
committed
fix simulator bug: downsampling is disabled by default on iPhone 6/6+/7/8 plus simulator
1 parent 9bb5e76 commit 44ccc0c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Runtime/Plugins/platform/ios/UIWidgetsDevice.mm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,34 +98,34 @@ + (NSString *) deviceName
9898
switch ((int)[[UIScreen mainScreen] nativeBounds].size.height) {
9999
//iPhone 5 or 5S or 5C
100100
case 1136:
101-
_deviceName = @"iPhone 5";
101+
_deviceName = @"iPhone 5 Simulator";
102102
break;
103103
//iPhone 6 or 6S or 7 or 8
104104
case 1334:
105-
_deviceName = @"iPhone 6";
105+
_deviceName = @"iPhone 6 Simulator";
106106
break;
107107
//iPhone 6+ or 6S+ or 7+ or 8+
108108
case 1920:
109-
_deviceName = @"iPhone 6 Plus";
109+
_deviceName = @"iPhone 6 Plus Simulator";
110110
break;
111111
//iPhone 6+ or 6S+ or 7+ or 8+
112112
case 2208:
113-
_deviceName = @"iPhone 6 Plus";
113+
_deviceName = @"iPhone 6 Plus Simulator";
114114
break;
115115
//iPhone X or XS
116116
case 2436:
117-
_deviceName = @"iPhone X";
117+
_deviceName = @"iPhone X Simulator";
118118
break;
119119
//iPhone XS Max
120120
case 2688:
121-
_deviceName = @"iPhone XS Max";
121+
_deviceName = @"iPhone XS Max Simulator";
122122
break;
123123
//iPhone XR
124124
case 1792:
125-
_deviceName = @"iPhone XR";
125+
_deviceName = @"iPhone XR Simulator";
126126
break;
127127
default:
128-
_deviceName = @"Unknown";
128+
_deviceName = @"Unknown Simulator";
129129
break;
130130
}
131131
}

0 commit comments

Comments
 (0)