Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds iOS AR experiences with RealityKit and ARKit, covering RealityView, USDZ entities, anchoring, raycasting, and gestures.
78% 100%+22 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 18 of 23 without it.
I am configuring a RealityView on iOS for a feature where augmented reality might not be supported on all target devices. How do I switch the camera view content to a non-AR rendering mode?
Sets the content camera property to .virtual when AR is unsupported
3 of 3 safety checks passed
Build AR experiences on iOS using RealityKit for rendering and ARKit for world
tracking. Covers RealityView, entity management, raycasting, scene
understanding, and gesture-based interactions. Targets Swift 6.3 / iOS 26+.
NSCameraUsageDescription to Info.plistRealityViewCameraContent displays an AR camera view by default (iOS 18+, macOS 15+); use .virtual camera mode for explicit non-AR fallbackarkit required-device capability; otherwise gate AR UI with isSupported.Check the exact AR configuration's isSupported value before presenting AR UI.
import ARKit
guard ARWorldTrackingConfiguration.isSupported else {
showUnsupportedDeviceMessage()
return
}
Next to this one in the catalogue, plus more from the same author.