preferredRenderingAPI
The rendering API to use for rendering the view (for example, Metal or OpenGL).
Declaration
static let preferredRenderingAPI: SCNView.OptionDiscussion
The value for this key is an NSNumber object containing one of the values listed in SCNRenderingAPI. You can also set this option from the inspector in Interface Builder.
SceneKit attempts to initialize a view using the preferred API you specify in the SCNView initializer; if the current device does not support the preferred API, SceneKit automatically falls back to a supported API. After initialization, use the renderingAPI property to find out whether a fallback occurred. For example, if you specify the SCNRenderingAPI.metal option when initializing a view on an iOS device that does not support Metal, SceneKit defaults to the SCNRenderingAPI.openGLES2 option instead.