Skip to content

fix(ios): pass fit in constructor, OOB asset improvements#237

Merged
mfazekas merged 2 commits intofeat/rive-ios-experimentalfrom
fix/fit-constructor-and-oob-assets
Apr 29, 2026
Merged

fix(ios): pass fit in constructor, OOB asset improvements#237
mfazekas merged 2 commits intofeat/rive-ios-experimentalfrom
fix/fit-constructor-and-oob-assets

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

  • Pass fit: directly in Rive() constructor instead of setting it post-creation. Removes the layoutSubviews/pendingFit workaround since rive-ios 6.19.1 handles this (rive-ios#443)
  • Warn when updateReferencedAssets is called on experimental backend (not supported — concurrency API can't update already-bound artboard assets)
  • Switch asset registration from parallel TaskGroup to sequential to ensure command queue ordering
  • Add debug logging to ExperimentalAssetLoader
  • Add explicit type fields to OutOfBandAssets example
  • Add expo-font plugin for kanit_regular.ttf in expo examples

Test plan

  • QuickStart + DataBindingArtboards render correctly with Fit.Layout on first mount
  • Out-of-Band Assets example loads initial assets correctly
  • updateReferencedAssets logs a warning instead of silently failing

Passes fit directly in the Rive() constructor instead of setting it
after creation. Removes the layoutSubviews workaround since rive-ios
6.19.1 fixes the MTKView drawable timing issue (rive-ios#443).
… to OOB example

Experimental backend logs a warning when updateReferencedAssets is called
since the concurrency API cannot update already-bound artboard assets.
Add explicit type fields to OutOfBandAssets example to suppress inference
warnings. Bundle kanit_regular.ttf font in expo examples via expo-font.
@mfazekas mfazekas force-pushed the fix/fit-constructor-and-oob-assets branch from 34a43f2 to 0ef84aa Compare April 29, 2026 11:45
@mfazekas mfazekas merged commit f9d75e4 into feat/rive-ios-experimental Apr 29, 2026
11 checks passed
@mfazekas mfazekas deleted the fix/fit-constructor-and-oob-assets branch April 29, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant