A view that enables you to display an AR experience with SpriteKit.
SDK
- iOS 11.0+
Framework
- ARKit
Declaration
class ARSKView : SKView
Overview
Use the ARSKView
class to create augmented reality experiences that position 2D elements in 3D space within a device camera view of the real world. When you run the view's provided ARSession
object:
The view automatically renders the live video feed from the device camera as the scene background.
When you implement
ARSKView
methods to associate SpriteKit content with real-world positions, the view automatically scales and rotates those SpriteKit nodes so that they appear to track the real world seen by the camera.Delegate