推荐使用 LSAnimator 实现 iOS 日常开发中的动画需求

2023-12-15 862 views
9
项目推荐
  • 项目名称: LSAnimator

  • 项目地址: https://github.com/Lision/LSAnimator

  • 项目语言: Swift 3.2-4.0, Objective-C

  • 项目描述: Easy to Read and Write Multi-chain Animations Kit in Objective-C and Swift.

  • 推荐理由: 通过使用 LSAnimator(Objective-C)或者 CoreAnimator(Swift)可以用少量的代码实现复杂而又易于维护的动画。并且弥补了 JHChainableAnimations 的致命缺陷,详见 LSAnimator

  • 示例代码:

LSAnimator *animator = [LSAnimator animatorWithView:self.myView];
animator.moveX(100).spring.thenAfter(2).increWidth(30).easeIn.animate(2);
  • 截图:

回答