Hello,
When an iOS app runs on Vision Pro in compatible mode, is there a flag such as isiOSAppOnVision
to determine the underlying OS at runtime? Just like the ProcessInfo.isiOSAppOnMac
. It will be useful to optimize the app for visionOS.
Already checked but not useful:
#if os(xrOS)
does not work in compatible mode since no code is recompiled.UIDevice.userInterfaceIdiom
returns.pad
instead of.reality
.
Thanks.
Hello all,
There is no API to detect that an iOS app is running on visionOS. If you have not already, please file an enhancement request and detail your use-case for this functionality using Feedback Assistant.
Best regards,
Greg