We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58ee897 commit 8fb7db4Copy full SHA for 8fb7db4
Sources/FoundationEssentials/ProcessInfo/ProcessInfo+ObjC.swift
@@ -60,6 +60,14 @@ extension _NSSwiftProcessInfo {
60
return dyld_get_active_platform() == PLATFORM_IOS
61
#else
62
return false
63
+#endif
64
+ }
65
+
66
+ override var isiOSAppOnVision: Bool {
67
+#if os(visionOS)
68
+ return dyld_get_active_platform() == PLATFORM_IOS || dyld_get_active_platform() == PLATFORM_IOSSIMULATOR
69
+#else
70
+ return false
71
#endif
72
}
73
0 commit comments