A view that enables you to display an AR experience with SceneKit.
- iOS 11.0+
ARSCNView class provides the easiest way to create augmented reality experiences that blend virtual 3D content with a device camera view of the real world. When you run the view's provided
The view automatically renders the live video feed from the device camera as the scene background.
The world coordinate system of the view's SceneKit scene directly responds to the AR world coordinate system established by the session configuration.
The view automatically moves its SceneKit camera to match the real-world movement of the device.
Because ARKit automatically matches SceneKit space to the real world, placing a virtual object such that it appears to maintain a real-world position only requires setting that object's SceneKit position appropriately. (See Providing 3D Virtual Content with SceneKit.)
You don't necessarily need to use the
ARAnchor class to track positions of objects you add to the scene, but by implementing
ARSCNView methods, you can add SceneKit content to any anchors that are automatically detected by ARKit.