image

RedPotion

RedPotion combines RMQ, ProMotion, CDQ, AFMotion, and other libraries. It also adds new features to better integrate RMQ with ProMotion.

Its goals are to choose standard libraries and promote best practices, allowing you to develop iOS apps in record time.

=========

The makers of RMQ at InfiniteRed and the creators of ProMotion at ClearSight Studio have teamed up to create the ultimate RubyMotion library.

image               image

ProMotion for screens and RMQ for styles, animations, traversing, events, etc.

Plugins and Add-ons

You can use both RMQ Plugins and ProMotion Add-ons

image

image

Quick start

gem install red_potion

potion create my_app
bundle
rake pod:install
potion create model state # This doesn't work yet
potion create screen table states # This doesn't work yet
 # a few changes
rake

New features for RMQ

You can use find instead of rmq in your views or screens

find.all.hide
find(my_view).children.nudge(right: 10)

You can use app directly in code, which is the same as rmq.app

So you also get window, device, and delegate from that.

app.device
app.window
app.delegate

You can use the folling in a UIView or Screen or UIViewController without prefacing it with rmq:

append
append!
prepend
prepend!
create
create!
build
build!
on
apply_style
reapply_styles
style

Stylesheet in your screens

You can specify the stylesheet in your screen like so:

class HomeScreen < PM::Screen
  title "RedPotion"
  stylesheet HomeStylesheet

  def on_load
  end
end

New features for ProMotion

None so far. ProMotion is perfect just as it is :-)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request