Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

v2.8.0

Choose a tag to compare

@jverkoey jverkoey released this 19 Dec 19:24
· 50 commits to stable since this release

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

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