Skip to content

2.3

Compare
Choose a tag to compare
@JakeLin JakeLin released this 06 Jun 03:11
· 1182 commits to master since this release

This is a big release, we have added 52 transition animations. After this release transition animation APIs are stable.

We also fixed some bugs and added some designable features.

Great thanks to @tbaranes who ported all transitions from VCTransitionsLibrary and added parameters support for some transition animators.

API breaking changes

  • Change PanFromLeft, PanFromRight, PanFromTop, PanFromBottom, PanHorizontally and PanVertically to Pan(Left), Pan(Right), Pan(Top), Pan(Bottom), Pan(Horizontal) and Pan(Vertical) for Pan gesture transition controller. #125
  • Refactor direction to fromDirection for system transition animators. Refactor TransitionFromDirection to TransitionDirection. #206
  • Refactor Fade, FadeIn and FadeOut to Fade(direction: TransitionDirection) in TransitionAnimationType. Use Fade(In) to replace FadeIn and use Fade(Out) to replaceFadeOut`.#209
  • Remove PresentFadeInSegue, PresentFadeInWithDismissInteractionSegue, PresentFadeOutSegue and PresentFadeOutWithDismissInteractionSegue, use PresentFadeSegue and PresentFadeWithDismissInteractionSegue instead. #209
  • Remove degree for SystemRotate since it only supports 90 degrees. #210

Enhancements

  • Add ScreenEdgePanInteractiveAnimator to support ScreenEdgePan(Left), ScreenEdgePan(Right), ScreenEdgePan(Top), ScreenEdgePan(Bottom), ScreenEdgePan(Horizontal) and ScreenEdgePan(Vertical) for ScreenEdgePan gesture transition controller. #125
  • Support multiple sides for border #168
  • Add ExplodeAnimator to support Explode transition animation. It supports parameters Explode(xFactor, minAngle, maxAngle), if no specified, the default values are Explode(10, -10, 10). #155
  • Add FoldAnimator to support Fold transition animation. It supports parameters Explode(direction, nbFolds), if no specified, the default values are Fold(Left, 2). #155
  • Add PortalAnimator to support Portal transition animation. It supports parameters Portal(direction, zoomScale), if no specified, the default values are Portal(Backward, 0.8). #155
  • Add NatGeoAnimator to support NatGeo transition animation. It supports only a direction NatGeo(direction), if no specified, the default values are NatGeo(Left). #155
  • Add Turn to support Turn transition animation. It supports only a direction Turn(direction), if no specified, the default values are Turn(Left). #155
  • Add CardsAnimator to support Cards transition animation. It supports parameters Cards(direction), if no specified, the default values are Cards(Forward). #155
  • Add FlipAnimator to support Flip transition animation. It supports parameters Flip(direction), if no specified, the default values are Flip(Left). Currently only support Flip(Left) and Flip(Right). #155
  • Add ContainerTransition to manage transition animations between two UIViewController in a container
  • Add AnimatableCollectionViewCell #167
  • Add PinchInteractiveAnimator to support Pinch(Close), Pinch(Open) for Pinch gesture transition controller. #125
  • Add SlideAnimator to support Slide transition animation. It supports parameters Slide(direction, fade), if no specified, the default values are Flip(Left). #155
  • Add IBAnimatable Playground to demonstrate transitions and interactions. #204
  • Add Parallelogram mask. #207 - Parallelogram Mask support in Maskdesignable
  • Add popToRootViewController segue for poping to root ViewController of the NavigationController. #212

Bugfixes

  • Use weak for the viewController in InteractiveAnimator to avoid retain cycle.
  • Fixed the right image of SideImageDesignable #176
  • Fix a bug to support single side of border for AnimatableTextField #179
  • AnimatorFactory and all the ***Animators can now be used / instantiate outside of IBAnimatable