This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
v2.0.0
This major release includes several new APIs, bug fixes, and internal cleanup.
Breaking changes
The animator now adds non-additive animations with the keyPath as the animation key. This is a
behavioral change in that animations will now remove the current animation with the same key.
Bug fixes
Implicit animations are no longer created when adding animations within a UIView animation block.
New features
New keypath constants:
- backgroundColor
- position
- rotation
- strokeStart
- strokeEnd
New APIs on CATransaction for setting a transaction-specific timeScaleFactor:
CATransaction.begin()
CATransaction.mdm_setTimeScaleFactor(0.5)
animator.animate...
CATransaction.commit()
Source changes
- Add support for customizing the timeScaleFactor as part of a CATransaction (#25) (featherless)
- [breaking] Use the keyPath as the key when the animator is not additive. (#22) (featherless)
- Disable implicit animations when adding explicit animations in the animator (#20) (featherless)
- Move private APIs to the private folder. (#17) (featherless)
- Add rotation, strokeStart, and strokeEnd key paths. (#19) (featherless)
- Extract a MDMCoreAnimationTraceable protocol from MotionAnimator. (#18) (featherless)
- Add position and backgroundColor as key paths. (#15) (featherless)
- Replace arc with kokoro and bazel support for continuous integration. (#13) (featherless)
API changes
CATransaction
new method: mdm_timeScaleFactor
.
new method: mdm_setTimeScaleFactor:
.
Animatable key paths
new constant: MDMKeyPathBackgroundColor
new constant: MDMKeyPathPosition
new constant: MDMKeyPathRotation
new constant: MDMKeyPathStrokeStart
new constant: MDMKeyPathStrokeEnd
MDMCoreAnimationTraceable
new protocol: MDMCoreAnimationTraceable