iOS (RubyMotion) Animation Library
This is a simple wrapper for linear iOS animations. Currently, only simple animations are supported. We promise to add much more fascination animations to this library, so please bear with us until then :)
Add this line to your application's Gemfile:
And then execute:
A sample app is included for reference. To get it up and running, simply clone the
repository and run
rake device depending on whether you want
to preview it in the simulator or device.
Using in your app
Here is the basic setup to ease work for you:
animator = MotionAnimator.new animator.linear_animate(view, to: final_point, duration: time_period, completion: completion_block)
final_pointshould be an instance of
CGPointor any other object with
yattributes set to the final (x, y) position the view should be in after the animation.
time_periodis the duration allocated for the animation to take place.
iOS (RubyMotion) Animation Library is Copyright (c) 2016 Multunus Software Pvt. Ltd. It is free software, and may be redistributed under the terms specified in the LICENSE file.
iOS (RubyMotion) Animation Library is maintained and funded by Multunus Software Pvt. Ltd. The names and logos for Multunus are trademarks of Multunus Software Pvt. Ltd.