diff --git a/Sources/FoundationEssentials/ProcessInfo/ProcessInfo+ObjC.swift b/Sources/FoundationEssentials/ProcessInfo/ProcessInfo+ObjC.swift index 3193aef63..0caa26622 100644 --- a/Sources/FoundationEssentials/ProcessInfo/ProcessInfo+ObjC.swift +++ b/Sources/FoundationEssentials/ProcessInfo/ProcessInfo+ObjC.swift @@ -60,6 +60,14 @@ extension _NSSwiftProcessInfo { return dyld_get_active_platform() == PLATFORM_IOS #else return false +#endif + } + + override var isiOSAppOnVision: Bool { +#if os(visionOS) + return dyld_get_active_platform() == PLATFORM_IOS || dyld_get_active_platform() == PLATFORM_IOSSIMULATOR +#else + return false #endif } }