Turn your Rive animation into a real, responsive app with data binding, using AI
Sharing a workflow for taking a finished, data-bound Rive file and running it as a real iOS/Android app, using an AI coding tool (Cursor) to write the integration instead of doing it by hand.
The Rive-specific parts that mattered:
- Export the runtime .riv, point the AI at it, and name the exact artboard and state machine. Left unspecified, it defaults to the first artboard.
- The layout is responsive, so I had it set fit = layout (not contain/cover). That's what let it adapt across screen sizes.
- Data binding wasn't picked up automatically. What worked: paste a screenshot of the data panel so the AI can see the ViewModel, then describe the structure in text (top-level fields, the forecast-day sub-model, and the enum for the weather states). After that it mapped everything correctly.
- Quick way to confirm the binding is actually live: ask it to change one bound value (I set the third forecast day to a specific state) and watch it update in the simulator before moving on.
- For live data, I told it the interaction logic already lives in the state machine, so its only job was to populate the data binding fields from the weather API. That stopped it from rebuilding behavior Rive already handles.
It chose Flutter and set up the Rive runtime itself.
Full walkthrough: https://www.youtube.com/watch?v=kVaWSQIo0ok
Prompt templates: https://www.rivemasterclass.com/app-prompts
The file is a more advanced setup (data binding + responsive layouts) from my Rive Masterclass, so it was a good stress test.