测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布上次发布 | 2016年10月 |
支持SPM支持Swift Package Manager | ✗ |
由noppefoxwolf维护。
要运行示例项目,请克隆仓库,并首先在Example目录中运行 pod install
Animator(duration: 1.0, frameRate: 30.0, curve: Curve.easeOut(), animations: { (value) in
self.v.center = CGPoint(x: self.view.bounds.width * value, y: 300)
}).resume()
Curve(calc: { (x) -> CGFloat in
return CGFloat(1.0 - pow(1.0 - x, 2.0))
})
x在0.0到1.0之间。
Animator可以通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile:
pod "Animator"
Tomoya Hirano,[email protected]
Animator可在MIT许可证下使用。有关更多信息,请参阅LICENSE文件。