jtrivedi / Wave

Wave is a spring-based animation engine for iOS and macOS that makes it easy to create fluid, interruptible animations that feel great.
https://jtrivedi.github.io/Wave/
MIT License
2.02k stars 55 forks source link

SwiftUI support: rename `Animation` to `SpringAnimator` #16

Closed jtrivedi closed 1 year ago

jtrivedi commented 1 year ago

This PR fixes https://github.com/jtrivedi/Wave/issues/15 and allows Wave property animators to be used in SwiftUI.

Previously, Animation conflicted with SwiftUI.Animation, and couldn't be resolved via Wave.Animation.

It also adds a small SwiftUI + Wave demo (dragging, throwing, and animating a box).