material-motion-archive / coreanimation-swift

Archived February 16, 2017 :: Core animation plan types for Apple devices
Apache License 2.0
5 stars 2 forks source link

Implement SpringTo using Core Animation springs #11

Open jverkoey opened 7 years ago

jverkoey commented 7 years ago

Use CASpringAnimation to drive the springs.

Create a new plan type named SpringTo. The signature should match the one described in the spec: https://material-motion.github.io/material-motion/starmap/specifications/plans/SpringTo

Which performer implements this plan is an implementation detail open for evaluation by the owner of this task.

seanoshea commented 7 years ago

See https://github.com/material-motion/material-motion-family-pop-swift/blob/develop/src/POPPlans.swift#L25 and https://github.com/material-motion/material-motion-family-pop-swift/blob/develop/tests/unit/SpringToTests.swift for some guidance on how this was achieved with Pop