Wave is a spring-based animation engine for iOS and macOS that makes it easy to create fluid, interruptible animations that feel great.
Fixes a display link crash reported here: https://github.com/jtrivedi/Wave/issues/30
This revision fixes an issue with animating and re-targeting affine scale and translation.
Version 0.3.0
adds macOS as a supported platform for Wave, and enables first-class animation support for AppKit.
AppKit apps can now use both the block-based and property-based animation APIs. There's also a tiny sample app for reference. In a separate patch, I'll add NSView
support, so you can animate frame
, bounds
, etc., and not just properties on CALayer
.
Other improvements/additions:
CALayer.borderColor/borderWidth
UIColor
and NSColor
)API compatibility notes:
UIView.animator.backgroundColor
and CALayer.animator.backgroundColor
are both non-null. If you want to animate to a clear/transparent color, animate to UIColor.clear
instead of to nil
.Support 120 fps animation on ProMotion devices.
Version 0.2.0
renames the Animation
class to SpringAnimator
, which enables Wave to be used with SwiftUI.
Due to the API renaming, this version is a breaking change. However, there are only two types that have been renamed, so clients shouldn't have too much difficulty updating to the new name.
Please reach out if you experience any difficulty adopting the new version.
Add three new animatable properties: shadowColor
, shadowRadius
, and shadowOffset
.