Published: Oct 17, 2015

Get current Xcode playground page name

You can get the name of the current Playground page using the following snippet:

NSProcessInfo.processInfo().environment["PLAYGROUND_NAME"]