MotionPrime is yet another framework written on RubyMotion for creating really fast iOS applications.
- Performance. MotionPrime designed to improve creating and scrolling performance of table views.
- Simplicity. Creating first MotionPrime application is as simple as creating new RubyOnRails application.
$ gem install motion-prime
2a. Create bootstrap project:
$ prime bootstrap myapp
$ prime new myapp
$ rake
# app/app_delegate.rb
class AppDelegate < Prime::BaseAppDelegate
def on_load(app, options)
open_screen :main
end
end
# app/screens/main_screen.rb
class MainScreen < Prime::Screen
title 'Main screen'
section :my_profile
end
# app/sections/my_profile.rb
class MyProfileSection < Prime::Section
element :title, text: "Hello World"
element :avatar, image: "images/avatar.png", type: :image
end
# app/styles/my_profile.rb
Prime::Styles.define :my_profile do
style :title,
width: 300, height: 20, color: :black,
top: 10, left: 5, background_color: :white
style :avatar,
width: 90, height: 90, top: 40, left: 5
end
- ECSlidingViewController 2 integration (Sidebar)
- RESideMenu integration (Sidebar)
- Sliding actions support
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Hope, you'll enjoy MotionPrime!
Cheers, Droid Labs.