SCNView
A view for displaying 3D SceneKit content.
Declaration
class SCNViewOverview
In macOS, SCNView is a subclass of NSView. In iOS and tvOS, SCNView is a subclass of UIView. As part of either operating system’s view hierarchy, an SCNView object provides a place for SceneKit content in your app’s user interface. You can create a SceneKit view by using its init(frame:options:) method or by adding it to a nib file or storyboard. To provide content for a SceneKit view, assign an SCNScene object to its scene property.
For additional important methods and properties for working with SceneKit views, see the SCNSceneRenderer protocol. (You can also render SceneKit content into an arbitrary Metal command queue or OpenGL context using the SCNRenderer class, or into a Core Animation layer on macOS using the SCNLayer class. The SCNSceneRenderer protocol defines functionality common to all three SceneKit rendering classes.)
Topics
Initializing a SceneKit View
Specifying a Scene
Configuring a View
Managing Camera Controls
allowsCameraControlcameraControlConfigurationSCNCameraControlConfigurationdefaultCameraControllerSCNCameraController