Mark Rickert
Mark Rickert
We use `try` a lot internally, but we're also starting to do a lot of `arity` detection to determine what parameters should be sent to the user's subclass like so:...
Thoughts on adding a method that tells the user if a Screen was presented from the "More" tab in a UITabBarController? Basically: ``` ruby def more? self.parentViewController.is_a?(UIMoreNavigationController) end ``` Thoughts...
I think it would be cool to do something like this: ``` ruby def table_data [ cells:[ { title: 'Do Something', action: proc { App.alert("Shown from a tablecell action block")...
Create a `PM::Screen` and open it with `open_modal(MyScreen.new(nav_bar: true))`. Enter `live` mode and change the screen's stylesheet. Notice the screen isn't updated. Close the modal and reopen it and the...
See demo repository here: https://github.com/markrickert/rmq.view_controller Steps to reproduce: 1. `bundle` 2. `rake` 3. Type into the REPL: `rmq.view_controller`. 4. Switch to a new tab and try again. 5. Switch to...
I was using live reloading and wanted to add a color to the application in the code block: ``` ruby class ApplicationStylesheet < RubyMotionQuery::Stylesheet def application_setup color.add_named :warning, '#E32935' end...
Take for instance `background_color`. Try this: 1. Turn on live reloading 2. style an element and add a background color... say `color.blue` 3. change it to `color.red`. save. app updates...
It would be great to be able to append a bunch of views and then call something like: ``` ruby .distribute(:flow, options = { padding: 5, center_last: true }) ```...
I think it would be neat to do something like this in a stylesheet ``` ruby def thing1(st) st.frame = { t: 5, l: 5, w: 10, h: 10 }...
I've got a view that I'm applying this style to: ``` ruby def container(st) st.frame = { l: 10, fr: 10, h: 320, } st.background_color = color.green end end ```...