How to make ‘Swiftception’ happen on your iOS device

2 min read Original article ↗

How to make ‘Swiftception’ happen on your iOS device

Apple just recently finally open-sourced Swift and the internet (or more specifically GitHub) went crazy.

While it’s certainly nice to view the repo in Safari or clone it for contributing purposes to your computer, I think it’s way nicer (and somehow crazy) to clone a Swift repo in a Swift-based application like Git2Go on iOS and continue from there.

And here’s how to do it:

  1. Make sure you have our latest update (1.3) installed.
  2. Open any public Swift repository in your mobile Safari.

Press enter or click to view image in full size

Swift package manager by @mxcl

3. Open the Safari action sheet from there and chose ‘Clone to Git2Go’.

Press enter or click to view image in full size

Make sure to move the ‘Clone’ action to the front for the future

4. Watch the repo getting cloned into a native Swift app.

Press enter or click to view image in full size

5. Open up Git2Go and find the cloned repo in your local repositories — ready for exploration.

Press enter or click to view image in full size

Press enter or click to view image in full size

And if you’ve already forked a Swift repository into your own account, you can even contribute Swift code from an app written in Swift.

The future, is amazing, isn’t it?