Repository navigation
6.25.0
Added
Apple runtime
GPU Canvas
GPU Canvas rendering is now available through the Swift Concurrency API, enabling 3D content across supported Apple platforms.
Enable GPU Canvas when creating a Worker:
let worker = try await Worker(
configuration: .init(enableGPUCanvas: true)
)
let file = try await File(
source: .local("my_file", Bundle.main),
worker: worker
)
let rive = try await Rive(file: file)GPU Canvas is required to render 3D content. Support is included in the standard build but disabled by default. The selected mode applies to every File loaded by the worker and every Rive object and view created from those files. It cannot be changed during the worker's lifetime.
The Legacy Runtime is unchanged. See the GPU Canvas documentation for more information.
- Added
File.getAssets()to the concurrency API. It exposes image, font, and audio metadata—including the authored name, unique registration name, asset ID, file extension, type, and optional CDN metadata—so applications can discover assets and register replacements with the file's worker.
Core runtime
- Added an obscured text-input mode for password entry. Obscured fields render bullets while preserving editing behavior and prevent their contents from being copied.
- Added text-input corner radius, padding, horizontal alignment, and vertical alignment properties.
- Added data binding for semantic check state, including unchecked, checked, and mixed values.
- Added previous and next focus traversal and focus-state queries to the command queue.
Fixed
Core runtime
- Fixed a crash while constructing state machines containing focused artboard component lists.
- Fixed gamepad focus events potentially triggering actions repeatedly, and focus actions being evaluated before component visibility and collapsed state were current.
- Fixed text and shapes inside Solo nodes falling back to their authored size instead of inheriting the surrounding layout size.
- Fixed nested artboards using incorrect fill and hug sizing inside grid and stack layouts.
- Fixed nested artboards using the wrong layout axis when separated from their parent layout by a Solo or group.
- Fixed artboard component lists inside groups being positioned differently between the editor and runtime.
- Fixed single-line text inputs not updating their hugged width after reshaping because of font loading or keyed and bound typography changes.
- Fixed invalid UTF-16 surrogate pairs for characters outside the Basic Multilingual Plane, which could cause missing glyphs, replacement characters, or text-layout assertions.
Renderer
- Fixed pipelines that source their vertex and fragment stages from different shader files.
- Fixed missing uber-shader permutations for dynamic-state draw types.
Changed
Apple runtime
- Added
Rive.makeRenderer(), which returns aRiveUIRendererProtocolimplementation matching the worker's rendering mode.RiveUIRenderer(worker:)andRiveUIRenderer(rive:)are deprecated. - Added the
onDrawrenderer callback. The renderer commits the command buffer after the callback returns; the previousfinalize:overload remains available but is deprecated. - Renderer submissions now validate artboard and state-machine handles, dimensions, pixel format, texture usage, and Metal device before drawing.
RiveUIViewDelegaterenderer errors are now delivered on the main actor.- Custom
CommandQueueProtocolandFileListenerconformers must implement the new file-asset listing methods.
Core runtime
- Reduced state-machine memory usage by approximately 34% across the unit-test assets by lazily allocating optional focus, semantics, scripting, event, and data-binding state.
Commits
See the full commit history between 6.24.0 and 6.25.0.
- feat(apple): add opt-in GPU Canvas support to the Concurrency API
a6a2044 - fix(runtime): own the FocusManager on the artboard, not the state machine
14bcea8 - feat(text_input): obscured mode for password entry
f2023db - feat(command-queue): add focus traversal
067135b - chore(semantic): make semantic check state bindable
7ae88f9 - fix(runtime): high surrogate calculation for SMP characters in
UTF::ToUTF1643d6369 - feat(text input): add more text-input properties
166025e - feat(apple): add file-asset metadata API
18f4c09 - fix(text_input): horizontal hug and scroll fixes while single-line
f87e0da - fix(editor): align
ArtboardComponentListparent walks in Dart and C++3b57264 - perf(runtime): shrink
StateMachineInstanceandDataBindContainer3a0544f - chore: address layout consistency items
0f1d81f - fix: honor a nested artboard's fill and hug sizing inside grid and stack layouts
7162290 - fix: propagate layout size through Solo children
f06eaf5 - fix(ore): allow pipeline stages to come from different shader files
fe251a1 - fix(renderer): include uber shaders for dynamic-state draw types
6bcd288 - fix(focus): gamepad input fixes
631343c