arkui

Springs

The numbers and curves everything moves by, the same on both phones; on the desktop, the curves and what moves along them.

Desktop

arkui::motion

arkui::motion

What moves a while and stops, on springs: a value sliding, something shown and hidden, whether to move at all, and a widget that draws what it holds moved, scaled and veiled.

Rules

rust/arkui/src/motion.rs

Mobile

Where

  • ui/Springs.kt: Springs

How

  • Springs.settle() and the rest: spring specs with a cap on how long any move takes.

Where

  • swift/ArkUI: Springs

How

  • Springs.move, Springs.size, Springs.fade: Android's springs converted exactly (docs/plan-arkui-swift.md).