📃 Creating an Xcode Playground

Xcode Playgrounds are a nice tool for prototyping and trying new concepts. However, third party libraries support is a bit cumbersome to add. One of the goals of nef is to make easier the creation of a Xcode Playground with support for one or more libraries.

By default, nef can create a Xcode Playground with support for Bow, the Functional Programming companion library for Swift.

 ➜ nef playground


Commands for creating a Xcode Playground

You can use the following option to specify the name for the Xcode project that you are creating.

 ➜ nef playground --name LatestBowProject

It will create an Xcode project with support for the latest available version of Bow, named BowPlayground. If you open this Xcode project, you will have a Xcode Playground where you can import Bow or any of its modules, and start trying some of its features.


Besides this, you can select any different Bow version or branch, even a third-party dependency.

Note: The next three options are mutually exclusive.

 ➜ nef playground --name OldBowProject --bow-version 0.3.0

 ➜ nef playground --name BranchBowProject --bow-branch master

Your Podfile, located in ./folder/dependencies:

 target 'MyPodsProject' do
 platform :osx, '10.14'
 pod 'Bow', '~> 0.4.0'
 ➜ nef playground --name MyPodsProject --podfile ./folder/dependencies/Podfile