Search code examples
rubymotion

How to use custom styled components with ProMotion gem


I am building an iOS app using Rubymotion and the excellent ProMotion gem. It all works fine and is super simple, as long as you only want the original Apple design for all components. I've searched high and low for a tutorial on how to using custom-designed elements with a ProMotion gem.

For example:

  • How can I style the navigation bar and its buttons and labels?
  • How can I style and create custom table rows?

I really want to use ProMotion because it seems like a perfect companion to RubyMotion. It would be cool to see source code for a sample custom-styled app.


Solution

  • Thanks for the ProMotion shout-out, Jonathan. I plan to create a styling guide for ProMotion soon. For now, here are some general guidelines:

    Update

    ProMotion style guide: https://github.com/clearsightstudio/ProMotion/wiki/Guide%3A-Styling-Your-Views