Hi!
I'd like to share a technical sample app, SKRenderer Demo.
This app demonstrates:
- Setting up SKRenderer
- Recording SpriteKit scenes to image sequences
- Recording SpriteKit scenes to video using IOSurface and AVFoundation
- Applying Core Image filters
- Exploring SpriteKit's simulation timing and physics determinism
Use Case
Record SpriteKit simulations as video or images for sharing and creating content.
I explored several approaches, including the excellent view.texture(from:crop:) for live recording from SKView. The SKRenderer approach assumes recording happens asynchronously: you capture user interactions as commands during live interaction, then replay those commands through an offline render pass to generate the final output.
I hope this helps others working on replay systems, simulation capture, or SpriteKit projects in general!