Skip to content

v1.9.0 — SVG path morphing

Choose a tag to compare

@ozgesolidkey ozgesolidkey released this 24 Sep 20:25
· 19 commits to main since this release

Path morphing — a <path> tweens smoothly between two shapes at runtime.

Set OGSvgNodeOverride.pathDataTo to a target d and drive morphProgress 0→1 from any Compose animation; the node interpolates from its current geometry to the target. Built for 60fps: both endpoint d strings are parsed once and cached, so each frame only lerps floats — no re-parse, no allocation churn. Structurally-mismatched paths snap at the halfway point rather than drawing garbage.

Purely additive (two new optional fields). Verified on Android + iOS (17 new unit tests) and dogfooded as a shape-shifting hazard in the demo's UFO Dodge game.

implementation("se.solidkey:kmpmedia-lib:1.9.0")

See docs/RUNTIME_SVG.md and CHANGELOG.