Hybrid iOS apps with Turbo


1 minute read

Native apps are hard. They are expensive to build and even more expensive to maintain.

What if that wasn’t the case? What if every time you built a new workflow in your Rails app, your mobile app got that feature for free?

This is possible with Turbo, a small framework from the geniuses at Basecamp. Follow this series of posts to learn how to build a hybrid iOS app from scratch. All you need is a mobile website powered by Ruby on Rails.

Follow along as we build a hybrid iOS from scratch alongside the supporting Rails code.

1. The Turbo framework

This introduction covers the benefits of hybrid apps and how Turbo helps bridge the gap between web and native. It also breaks down the code in the Quick Start guide from the Turbo wiki line by line. A perfect place to start for those new to Turbo or hybrid in general.

2. URL routing

The second article covers everything related to routing URLs. This includes visit actions (advance vs. replace), path configuration, error handling, and native view controllers. It also touches on how forms work in Turbo iOS and why you might be running into issues with your Rails app.

3. Forms and basic authentication

Part 3 covers slightly more advanced topics: forms and basic authentication. Learn how to install Turbo in Rails 6, add custom form handling for the iOS client, and get up and running with web-based authentication.

4. The JavaScript bridge

Having all our content in rendered on the web comes with some trade-offs. What if we want a native navigation bar button? Enter the JavaScript bridge, where we can pass messages between client and server without waiting for someone to tap a link.

Coming soon…

5. Native screens

6. Architecture and coordinators

Testing, development, and product sneak peeks. Sign up for my monthly newsletter.