Skip to content

Instantly share code, notes, and snippets.

@KamalHunzai
Last active September 23, 2016 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KamalHunzai/882c67b1f33e045a46f6993eca1d925d to your computer and use it in GitHub Desktop.
Save KamalHunzai/882c67b1f33e045a46f6993eca1d925d to your computer and use it in GitHub Desktop.
Generate a Swift Playground for any Pod.
Generates a Swift Playground for any Pod.
Installation
$ gem install cocoapods-playgrounds
Usage
CocoaPods
To generate a Playground for a specific Pod:
$ pod playgrounds Alamofire
To generate a Playground for a local development Pod:
$ pod playgrounds ../../../Sources/Alamofire/Alamofire.podspec
To generate a Playground with multiple Pods:
$ pod playgrounds RxSwift,RxCocoa
Carthage
To generate a Playground for a Carthage-enabled library:
$ carthage-play Alamofire/Alamofire
Note: This currently assumes that libraries are hosted on GitHub.
CLI
To generate an empty Playground from the commandline:
$ playground --platform=ios YOLO
$ open YOLO.playground
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment