rive-app / rive-ios

iOS runtime for Rive
MIT License
484 stars 55 forks source link

SpriteKit support #196

Open maxgribov opened 2 years ago

maxgribov commented 2 years ago

Hi guys, thank you for a great tool!

I know, that SpriteKit is not very popular framework. But maybe you have any future plans to integrate Rive runtime into SpriteKit?

As I can see, to render animations in UI you use MTKView. SpriteKit has SKRenderer, witch can directly use Metal to render SKScene or some extra elements. Unfortunately I have a very weak idea of how Metal works and how to write render programs for it :(

Another approach that I can see - is getting from RiverView or RiverView Model series of SkTexture (rasterized images) and play them with regular SpriteKit API (SKSpriteNode). I would be grateful for any hint on how this could be implemented in the Rive runtime.