v2.8.0
This minor release introduces support for animating more key paths and support for drop-in UIView animation API replacements.
New features
The MotionAnimator can now implicitly animate the following CALayer properties: anchorPoint
, borderWidth
, borderColor
, shadowColor
, and zPosition
.
There are now UIKit equivalency APIs that can be used as drop-in replacements for existing UIView animation code.
Source changes
- Add IS_BAZEL_BUILD around MotionInterchange import (#103) (Louis Romero)
- Anchor point became animatable on iOS 11. (Jeff Verkoeyen)
- Add support for animating anchorPoint. (#97) (featherless)
- Add support for animating shadow color. (#99) (featherless)
- Add support for animating border width and color. (#98) (featherless)
- Add support for animating z position. (#96) (featherless)
- Add support for additively animating bounds. (#93) (featherless)
- Improve the documentation for initial velocity. (#94) (featherless)
- Standardize our param docs formatting. (#95) (featherless)
- Add back test properties that were accidentally removed in 69469aedb987e516ff1f43a123b3ee29dfef38ca. (Jeff Verkoeyen)
- Add support for using a spring generator as a timing curve. (#91) (featherless)
- Throw an assertion when an unrecognized timing curve is provided. (#92) (featherless)
- Add UIKit equivalent APIs for animating implicitly. (#90) (featherless)
API changes
Auto-generated by running:
apidiff origin/stable release-candidate objc src/MotionAnimator.h
Animatable key paths
new constant: MDMKeyPathAnchorPoint
new constant: MDMKeyPathBorderWidth
new constant: MDMKeyPathBorderColor
new constant: MDMKeyPathShadowColor
new constant: MDMKeyPathZ
MDMMotionAnimator(UIKitEquivalency)
new class method: +animateWithDuration:delay:options:animations:completion:
in MDMMotionAnimator(UIKitEquivalency)
new class method: +animateWithDuration:animations:completion:
in MDMMotionAnimator(UIKitEquivalency)
new class method: +animateWithDuration:animations:
in MDMMotionAnimator(UIKitEquivalency)
new class method: +animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:
in MDMMotionAnimator(UIKitEquivalency)
Non-source changes
- Animate the border as well to demonstrate that we can animate CALayer properties with the animator. (#101) (featherless)
- Add a UIKit-ish tap to bounce example as a contrast to the traits example. (#100) (featherless)
- Wording order. (Jeff Verkoeyen)
- Min SDK support. (Jeff Verkoeyen)
- Fix the banner url. (Jeff Verkoeyen)
- Add banner and drop most of the preamble docs in preparation for the new readme. (Jeff Verkoeyen)