I spent yesterday figuring out the turbo-iOS Here is a quick demo
It is actually pretty straightforward enough but there are few gotchas in the readme that might have you scratching your head.
I'm going to assume you have an app with the turbo-rails gem installed. If that's setup, you can proceed to the next steps.
Also, make sure your app is running on port 5000.
First things, you have to have Xcode installed. It's pretty big and needs about 29.07 GB.
Screenshot 2020-12-23 at 10.29.18.png13.9 KB
I wish I was joking when I said that. If you get an error that says you don't have enough space on your mac, you can download the Xcode.xip file from the apple developer website(which is a 13GB file) and then move it to an external hard drive and install from there.
Next thing is to launch Xcode
Click 'Create a new Xcode project'
Make sure to click iOS
then click App.
Click Next
Screenshot 2020-12-23 at 10.34.27.png190 KB
On the next page, you enter the project name.
Make sure you select Storyboard and UiKit App Delegate. Here is a screenshot of my setup. Screenshot 2020-12-23 at 11.38.20.png112 KB
Now you can follow the turbo-ios quick start verbatim
From the docs
Select your app's main top-level project, go to the Swift Packages tab and add the Turbo iOS dependency by entering in https://github.com/hotwired/turbo-ios.
This means you click File > Swift Packages > Add Package Dependency
Screenshot 2020-12-23 at 10.42.55.png150 KB
The next step in the QuickStart:
Open the SceneDelegate, and replace the entire file with this code:
Now we have to change the NSAppTransportSecurity settings in Info.plist.
This can be achieved by clicking Info.plist but honestly, I prefer using an editor. I've pasted my code below so you can see but I've also included a screenshot: