An object that renders a scene into a custom Metal rendering pipeline and drives the scene update cycle.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
Apps that are built in Metal can mix in SpriteKit content. While it's possible to add
SKViewas a subview to a Metal view, plugging
SKRendererinto their Metal pipeline allows layering SpriteKit content at a specific z-position.
You might be writing a SpriteKit app and decide later to take full control over some portion of renderering by implementing it with Metal, yet continue to use SpriteKit for the rest of the app. For example, you might write the environmental effects layer of your app that does fog, clouds, and rain, with custom Metal shaders, and continue to layer content below and above that with SpriteKit.