Post

Replies

Boosts

Views

Activity

Reply to Is there a `isiOSAppOnVision` flag to check iOS app on Vision Pro at runtime?
A runtime check would be great, but the person compiling the app knows which they are targeting (a compatible iPad app, or a visionOS app), so a custom compiler flag could be set and tested in the code with #if, right? In Build Settings-> Swift Compiler - Custom Flags -> Active Compiler definitions -> add e.g. ISVISIONOS for a true visionOS app, and leave it out for iPad apps. The different Xcode targets have their own build settings. and in swift: #if ISVISIONOS Sorry if I'm missing something from your question.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’24
Reply to Can't play Audio in RealityComposerPro
I have found that the audioPlaybackController to be non-functional for me. Since I cold not figure out how to make it active, I just use the Entity's commands .playAudio(audioResource) and .stopAllAudio(). Too bad, I wanted to use the controller's fade method. -mike
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’24