CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

Animator 0.3.4

Animator 0.3.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2016
SPMSupports SPM

Maintained by noppefoxwolf.



Animator 0.3.4

  • By
  • Tomoya Hirano

Animator

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

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

create curve

Curve(calc: { (x) -> CGFloat in
      return CGFloat(1.0 - pow(1.0 - x, 2.0))
})

x is 0.0 to 1.0.

Requirements

Installation

Animator is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Animator"

Author

Tomoya Hirano, [email protected]

License

Animator is available under the MIT license. See the LICENSE file for more info.