Skip to content

Commit c316428

Browse files
Fix iOS simulator detection.
1 parent 3258cc7 commit c316428

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/utilities/util.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ abstract class Util {
3838
return false;
3939
}
4040

41-
// special check for running under ipad mode in macos
42-
if (Platform.isIOS &&
43-
libraryPath != null &&
44-
!libraryPath!.path.contains("/var/mobile/")) {
45-
return true;
41+
// iOS devices and simulators should use mobile UI
42+
// Only desktop platforms should use desktop UI
43+
if (Platform.isIOS) {
44+
return false;
4645
}
4746

4847
return Platform.isLinux || Platform.isMacOS || Platform.isWindows;

0 commit comments

Comments
 (0)