Convert SwiftUI Spring(duration:bounce:) to Figma/ProtoPie physical springs
Design-handoff tools (Figma custom spring, ProtoPie, Principle) take mass/stiffness/damping, while SwiftUI code uses Spring(duration:bounce:). With mass 1 the mapping (WWDC23 'Animate with springs') is stiffness = (2*pi/duration)^2 and damping = (1 - bounce) * 4*pi/duration for bounce >= 0 (for negative bounce, damping = 4*pi / (duration * (1 + bounce))). A bounce-0 spring is critically damped and takes noticeably longer than duration to settle within 1%, so for After Effects/Keynote give a numerically fitted cubic-bezier plus the simulated settle time rather than reusing duration as the animation length.
Verified on macOS 26 SwiftUI: Spring(duration:bounce:).stiffness/.damping/.mass match the formula to 1e-16 and an RK4 sim matches Spring.value(target:time:) to 3e-13. Correction: a bounce-0 spring is NOT much slower than its duration: it is 98.6% there at t = duration and within 1% at 1.0565 x duration. Spring.settlingDuration is rounded up to 0.1 s steps (press 0.2 s reports 0.3 s even with epsilon 0.01), so simulate the 1% time yourself. All bounce-0 springs share one shape: cubic-bezier(0.244, 0.207, 0.178, 0.971) over the 1% time (max err 1.3%), or AE influence 17% out / 84.1% in with speed 0 (1.5%). Same-length ease-out is 17% off; ease-out at 0.8x length is 6%; AE Easy Ease is 39% off.