Scene Kit is coming to the Dispatch

At InfiniteRed, Will Raxworthy and I have been working on a project using Scene Kit. Scene Kit is like Sprite Kit but it’s for 3D graphics (Sprite Kit is for 2D).

There is very little documentation out there on Scene Kit, so we’ve had to figure it all out. Our pain is your gain, as I will be creating some basic gems in RubyMotion and creating some example apps.

It’s really fun stuff, stay tuned.


If you missed the last issue, you can find it here: issue #38.

Happy coding, Todd Werth (@twerth)

Articles, News, New Gems, and Blog Posts


August 5th, 2014 | blog post | by Stalin
Audio Recording – RubyMotion

August 4th, 2014 | screencast | by Jack Watson-Hamblin
MotionInMotion – Episode 36 – Test Driven Development and Creating a Gem

August 3rd, 2014 | blog post | by Jamon Holmgren
ProMotion 2.0 Launched

August 2nd, 2014 | blog post | by Jack Watson-Hamblin
Gaining Control of RubyMotion with UIViewControllers

August 2nd, 2014 | guide | by Jamon Holmgren
Migration Guide: ProMotion 1.2 to 2.0

August 1st, 2014 | blog post | by Jack Watson-Hamblin
Starting a RubyMotion Application

RubyMotion App of the Week


image

Groceries by Ketan Anjaria

Gems used in the app:

  • afmotion
  • bubble-wrap
  • sugarcube
  • motion-testflight
  • motion-support

Pods used in the app:

  • AFNetworking
  • ViewDeck
  • Analytics/Segmentio
  • Analytics/Crittercism
  • Analytics/Mixpanel
  • Analytics/Flurry
  • Reachability
  • BSKeyboardControls
  • SVProgressHUD
  • MSLabel
  • TSMessages
  • UIDeviceIdentifier

ProMotion Tip by Mark Rickert


ProMotion is all shiny and new! There aren’t a lot of added features in 2.0.0 but you’ll find it builds 55% faster and is 20%+ lighter!

One new feature I was able to sneak past Jamon is the new ‘longpressable’ TableScreen module. You’ve always been able to fire an action for a particular table cell whenever it was tapped, but I needed a way to tap and hold to fire a different action based on that gesture. This 25-line module does just that.

Simply add longpressable to the top of your PM::TableScreen subclass (where you’d put searchable or indexable) and in your cell hashes add long_press_action: :some_action.

Internally, it adds a UILongPressGestureRecognizer to the table view and when the action is triggered, it figures out what cell your finger is on and runs the long_press_action associated with the cell!

Make sure to check out the migration guide since some other things have changed in the way TableScreen cells are passing data back and forth.

Bonus tip: longpressable defaults to 1 second, but you can modify that like this:

longpressable min_duration: 2.5

Sponsor


My company InfiniteRed sponsors this newsletter by allowing me the time to work on it every week and hosting everything.

Contact us if you ever need help working on a project, mentoring, or other development services . We specialize in RubyMotion and have an awesome team.

image

Wat!


To error is human, to force you to care about the error is Java


If you have any tips, blog posts, or comments, please send emails to todd@infinitered.com