AdvanceiOS动画引擎

联合创作 · 2023-09-27 05:22

Advance 是一个纯 Swift 编写的框架,可为开发者提供强大的动画功能。只要一个简单API,就能实现复杂的动画效果。

示例代码:

import Advance

class MyClass {

  let center: Animatable<CGPoint>

  init() {
    ...
    center.changed.observe { (value) in
      // Do something every time the center value changes
    }
  }
}

let foo = MyClass()

// foo.center.animateTo(...)
// foo.center.springTo(...)
// foo.center.decay(...)
// foo.center.animate(<custom animation type>)

浏览 1
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报