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

v2.0.0

Compare
Choose a tag to compare
@jverkoey jverkoey released this 03 Nov 17:20
· 194 commits to stable since this release

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

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