微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Advance iOS动画引擎

程序名称:Advance

Advance 介绍

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>)

Advance 官网

https://medium.com/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐