Quickly convert a folder containing Swift files into an iPad-compatible Playground
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/Shapeshift Generate playground directly in iCloud Drive instead of copying Dec 17, 2018
.gitignore
LICENSE Add Shapeshift Dec 17, 2018
Package.resolved
Package.swift Add Shapeshift Dec 17, 2018
README.md

README.md

🔶 Shapeshift

Swift Package Manager Marathon compatible Twitter: @johnsundell

Welcome to Shapeshift, a tool that lets you quickly convert a folder of Swift files into an iPad-compatible Playground. It can even place it in Swift Playground's documents folder in your iCloud Drive, so that you can instantly pick up your iPad and start coding! 🚀

Usage

Generate a playground containing all the Swift files in the current directory (and any of its subdirectories). The only argument you have to pass is the name of the playground you wish to generate:

$ shapeshift NameOfYourPlayground

If you are using Shapeshift to be able to quickly move a set of Swift source files to the iPad, pass the -icloud flag to have the generated playground be automatically moved into Swift Playground's documents folder in your iCloud Drive:

$ shapeshift NameOfYourPlayground -icloud

That's it! 🙂

Installation

Shapeshift is a Swift package. To install it, use one of the following methods:

📦 Using the Swift Package Manager

$ git clone https://github.com/JohnSundell/Shapeshift.git
$ cd Shapeshift
$ swift build -c release -Xswiftc -static-stdlib
$ install .build/Release/Shapeshift /usr/local/bin/shapeshift

🏃‍♂️ Using Marathon

$ marathon install johnsundell/shapeshift

If you encounter any issues during installation, please refer to the documentation of the tool that you're using to install Shapeshift.

Contributions

Shapeshift is developed completely in the open, and your contributions are more than welcome.

You might notice that this project does not have GitHub issues enabled. That's because this project uses the same PR-focused workflow as Splash, and other projects. You can read more about that workflow here.

Hope you enjoy Shapeshift! 😀