Last active
September 23, 2016 12:42
-
-
Save KamalHunzai/882c67b1f33e045a46f6993eca1d925d to your computer and use it in GitHub Desktop.
Generate a Swift Playground for any Pod.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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