Rive Runtime updates - September 14, 2026

rive_vscode_preview.mp4

The Rive CLI and RML (Rive Markup Language) now have a VS Code extension with a language server behind it. And a lot of other updates in our latest biweekly roundup of what shipped across Rive Runtimes.

Highlights:

  • The Rive CLI + RML unlocks some exciting runtime workflows. Write a scene in RML, preview it live, and bake the .riv your app loads, all from a project folder that diffs alongside the rest of your code. This video shows how the CLI and an agent can keep your graphics and runtime code in sync, while previewing two upcoming features: Semantics and Focus. See the CLI docs and working with agents.

  • Rive now has a VS Code extension. It adds syntax highlighting, linting, go to definition, and autocomplete for RML and scripts, plus a full debugger with breakpoints, stepping, and locals. Press F5 to launch the CLI preview and attach the debugger, or attach to an existing session started with rive <dir> --debug. The CLI hosts the language server, keeping the extension itself lightweight and making it possible for other editors to integrate with it too.

  • React Native gets type-safe .riv schemas in the v0.5.0 beta (beta.4). yarn rive-gen-types generates a .riv.d.ts next to each asset, giving you compile-time checks for artboard, state machine, and View Model names, property paths, and enum values in RiveView and the useRive hooks.

  • GPU Canvas is now available on Web (v2.42.0), React (v4.34.0), and Android (v11.12.0). Enable it with enableGPUCanvas on Web and React, or create a deferred worker on Android. It remains opt-in and off by default on all three platforms. See the GPU Canvas docs for details.

  • Android begins deprecating its Legacy API in v11.11.0. RiveAnimationView and RiveFileController now carry deprecation notices pointing developers toward app.rive, along with state machine inputs, Rive Events, text runs, and direct animation playback. Nothing has been removed yet.

  • Global View Models can now be set at runtime on Android (v11.11.0) as an experimental opt-in, and on Flutter in the v0.15.0-dev.2 pre-release. On Flutter, this changes how data binding is initialized, see the migration guide.

  • Semantics (Accessibility) is now a first-class widget option in Flutter in the v0.15.0-dev.2 pre-release. Pass RiveSemantics.enabled to RiveWidget, or use RiveSemantics.auto to enable it only when the platform requests accessibility.

  • Text line breaking now follows Unicode rules more closely. The core runtime now handles line breaks according to UAX #14.

  • Week after week the runtime keeps getting leaner. Animation and state machine instances are smaller again, large files load faster, and Android no longer embeds roughly 1 MB of unused shaders. That final change isn't in a published Android release yet, so look out for the full numbers in the next one.

  • Global assets now update files that are already loaded on Apple's Concurrency API (v6.26.0) and Android's app.rive runtime (v11.12.0). Register, replace, or remove a global image, font, or audio asset on the worker, and every loaded file that references it updates automatically.

Core runtime

  • Global assets on the command queue apply to loaded files: registering, replacing or removing a global image, font or audio asset through the command queue now updates every loaded file that references that name, not just files loaded afterward. This is the API behind Apple's Concurrency API and Android's app.rive runtime. It never overrides an asset with embedded contents or one a custom file asset loader claimed.

  • Animation and state machine instances use less memory: each LinearAnimationInstance shrinks from 176 to 104 bytes and each state machine layer from 104 to 72 bytes with one fewer heap allocation, because the runtime allocates data binding, scripted interpolator and any-state data only when a file uses them. Animation state instances drop from 200 to 128 bytes and blend state animations from 192 to 120.

  • Files exported before format 7.3 keep their text sizing: the layout-controlled text sizing from a recent update could move text bounds in existing files and make an overflow setting such as Ellipsis, set years ago and never active, suddenly truncate. Older files now stay on the previous path.

  • Existing Components inside Solos keep their layout: the fit and alignment fix from the last update now applies only to newly authored Components. Existing files render as before.

  • Text fitted to its font size measures at the fitted size: a hug layout reserved a slot at the authored size and left dead space under the text. Gated on format 7.4, so existing files keep their layout.

  • Unicode line breaking: runtime text now breaks lines per UAX #14. Breaks follow hyphens, dashes and slashes, fall per character in CJK with kinsoku, and keep numbers and quotes whole. No-break space, word joiner and soft hyphen stay glued, and an overflowing word never splits a glyph cluster, so Indic vowel signs stay with their consonant.

  • Large files load faster: dependency sorting shifted the whole component list on every insert. On a 54 artboard, 72k object file, File::import drops from 517 ms to 483 ms and the sort itself from 107 ms to 66 ms. Artboard instancing gets the same win.

  • List items bind to view model instance values: a list row's content can follow a value on the host's view model instance, with two-way binding and converters.

  • Text Inputs select all when focused from the keyboard: Tab or arrow traversal into a Text Input selects its text, while a pointer press keeps the caret where it was. A new selectAllOnFocus property, off by default, selects however the input is focused.

  • Failed property reads no longer send a value: reading a missing or mistyped view model property through the command queue sent an error and an uninitialized value. Only the error is sent now, which fixes a CheckJNI abort on Android's new API.

  • Large file IDs load: the runtime read the header file ID at 32 bits, so a valid file with an ID above that range could fail to load.

  • Zero-scale artboards stop receiving pointer input: a collapsed artboard rejects hits, clears hover and cancels its active gestures.

  • Layout interpolators fall back to linear: a file whose interpolation curve could not be resolved read an uninitialized pointer. It now reliably degrades to linear.

  • Stale data contexts after unbinding fixed: artboards and state machines kept a second pointer to their data context that unbinding did not clear.

  • Command queue reports successful view model instance lookups: main and global lookups deliver the instance with the originating state machine and request ID. Failed lookups now report through the state machine error path instead of the view model error path.

  • Watermark pre-roll: files exported with a watermark play it before the requested artboard, then hand over on the next frame.

Rendering

  • Atomic-mode shaders compiled out on Android: production Android never selected atomic rendering but still embedded all 43 of its SPIR-V modules. Removing them takes 1,007,096 bytes off a stripped ARM64 release build, 98% of it shader data.

  • GPU Canvas images composite upright on GL: WebGL, Android GL and desktop GL now render canvas targets top down like every other backend.

  • Nested GPU render passes in scripts: a pass begun inside another finishes first so the enclosing pass can sample its output, and a nested script call no longer closes canvas frames or render passes its caller owns.

  • GL clears reset the color mask: sharing an OpenGL context with another renderer could leave a clear writing only some channels.

  • Image paints in atomic rendering mode: colors, gradients, strokes and feathered paths.

  • A sample count of 1 renders directly: msaaSampleCount 1 now selects non-antialiased direct rendering on GL, Vulkan and WebGPU, as the option was always meant to.

  • Vulkan fixes: depth writes with an always compare now land, and a render pass reading a texture nothing has written yet clears it instead of loading undefined contents.

  • Renderers can clip against stroked paths: a new clipStroke on Renderer, implemented for the deferred renderer.

  • Scripted shader safety: the runtime rejects a uniform buffer shorter than the shader's block, and an assert with dynamic state enabled no longer fires.

Apple v6.25.1-v6.26.0

  • Global assets through the concurrency Worker update loaded files: registering, replacing or removing one applies to every applicable file, and settled views redraw when a global asset applies or clears.

Android v11.11.0-v11.12.0

  • Experimental GPU Canvas through Deferred Rendering: use rememberDeferredRiveWorker() in Compose or RiveWorker.createDeferred() when managing the worker yourself, with @OptIn(ExperimentalDeferredRendering::class). Drawing is recorded and replayed synchronously on the same worker thread, and these entry points are temporary. See the DeferredRendererActivity sample.

  • Legacy API deprecation begins: RiveAnimationView and RiveFileController are deprecated in favor of app.rive. State machine inputs, Rive Events, text runs and controller listeners point to data binding; direct linear animation playback to state-machine-controlled playback; multiple state machines to a single one; and the Legacy Canvas renderer and the riveRenderer XML attribute to the Rive Renderer, which is already the default. No functionality is removed.

  • Experimental Global View Models: pass a globalViewModelInstances map to Rive or RiveCanvasSession with @OptIn(ExperimentalRiveGlobalViewModels::class). All instances must belong to the same worker. Compose applies additions, replacements and removals on recomposition, and removing an override restores a fresh instance with authored defaults. A RiveCanvasSession takes its bindings at construction.

  • Rive file lifetime: a directly constructed RiveFile could outlive its worker. Every file now keeps its worker alive until it closes.

  • View model property flows: cancelling collection left native subscriptions behind, repeated collection accumulated duplicates, and flows stayed suspended after their instance closed. Collectors now share one subscription per property and complete when the instance closes.

  • Hardware bitmap rendering: cleanup continues if an earlier step fails, and closing from the image callback no longer stalls for one second.

Web v2.41.1-v2.42.1

  • Experimental GPU Canvas: pass enableGPUCanvas in the Rive or RiveFile parameters to import a file through a Deferred Rendering session. A file's mode is fixed at import, so a second instance sharing the file re-imports it. Builds without deferred support fall back to immediate mode with a warning. See the GPU Canvas docs.

  • Image decoding on GPU Canvas scripts fixed: decoded pixels are written through the current wasmMemory view, so scripts that decode images no longer fail every frame after memory growth.

  • Semantic checked state is parsed as one value: unchecked, checked and mixed, rather than two independent flags.

React v4.33.1-v4.34.2

  • Experimental GPU Canvas for the WebGL2 variant: pass enableGPUCanvas, as on Web (see Web above).

  • Canvas backing store released on unmount.

  • Canvas no longer ends up 0 by 0 under React strict mode.

  • Bumps the Web runtime to 2.41.1 (see Web above).

React Native v0.5.0-beta.2-v0.5.0-beta.4

  • Breaking in beta.3: the onStop callback from beta.1 is gone. State machine settling is internal to the runtime, so fire a data binding trigger when the timeline completes instead. The README covers the editor setup.

  • Type-safe .riv schemas (beta.2): yarn rive-gen-types emits a .riv.d.ts next to each asset, so artboard, state machine and view model names, property paths and enum values are checked at compile time across RiveView, useRiveFile, useViewModelInstance and the useRive property hooks. No runtime overhead.

  • Recreated views no longer come back blank (beta.4): when Fabric recreated a RiveView from an unchanged shadow node, as with react-freeze or a display: 'none' toggle, the new view had no file or artboard. Props are now force-applied on a new view instance's first update. iOS only; Android never recreates the view.

  • beta.2 bumps rive-android to 11.9.1 and rive-ios to 6.23.1.

Flutter v0.15.0-dev.2

See the newly added migration guide.

  • Semantics as a widget option: RiveWidget takes RiveSemantics.enabled to project authored Semantics into Flutter's accessibility tree, RiveSemantics.auto to switch on when the platform requests accessibility, or the default RiveSemantics.disabled, which builds nothing.

  • Global View Models with automatic binding: RiveWidgetController binds default instances for the main and every Global View Model at construction, or takes main and globals parameters to choose them. Rebind later with controller.bind(), and read bound instances back from controller.viewModelInstance and controller.globalViewModelInstance(name).

  • Behavior change: content with view models that previously rendered unbound now renders its authored defaults.

  • Removed: controller.dataBind, RiveWidgetBuilder.dataBind and RiveLoaded.viewModelInstance. Pass the instance at construction and read it from the controller. Importing package:rive/legacy.dart restores the old calls as deprecated extensions for now. The changelog has the migration steps.

  • Semantics fixes: screen reader actions work after an animation settles, the tree survives artboard swaps and navigating away from a route and back, a node reparented out of a removed parent is kept, malformed UTF-8 no longer aborts an update, and turning the screen reader off and on no longer crashes.

  • Fixes: RiveWidgetBuilder no longer disposes an instance you supplied through DataBind.byInstance, and now disposes the previous controller when reconfigured instead of leaking it. iOS audio resumes when the app returns from the background. On Web, the deferred render worker works again on the Emscripten 4 build, and a widget reusing a pooled canvas no longer shows the previous widget's last frame.