├── .gitignore
├── README.md
├── Swift Playground.alfredworkflow
└── templates
├── empty_ios.playground.zip
├── empty_ios.playground
├── contents.xcplayground
└── section-1.swift
├── empty_osx.playground.zip
└── empty_osx.playground
├── Results.playgrounddata
├── contents.xcplayground
└── section-1.swift
/.gitignore:
--------------------------------------------------------------------------------
1 | templates/.DS_Store
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Swift Playground Alfred Workflow
2 | ================================
3 |
4 | Create or open a Swift Playground through Alfred.
5 |
6 | Install the workflow then open Alfred and type **swift** and press enter. This will create a folder **~/Playgrounds/Default** and then open a playground named **default.playground** in XCode. The next time you open Alfred and type **swift** this playground will be opened.
7 |
8 | Alternatively you can pass in a parameter to **swift** and that playground will either be created if it doesn't already exist or opened if it does. e.g. **swift spriteKitTest**
--------------------------------------------------------------------------------
/Swift Playground.alfredworkflow:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jimrutherford/Swift-Playground-Alfred-Workflow/65fae6e588d27e5b761719ce004aa5b5615f864c/Swift Playground.alfredworkflow
--------------------------------------------------------------------------------
/templates/empty_ios.playground.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jimrutherford/Swift-Playground-Alfred-Workflow/65fae6e588d27e5b761719ce004aa5b5615f864c/templates/empty_ios.playground.zip
--------------------------------------------------------------------------------
/templates/empty_ios.playground/contents.xcplayground:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/templates/empty_ios.playground/section-1.swift:
--------------------------------------------------------------------------------
1 | // Playground - noun: a place where people can play
2 |
3 | import UIKit
4 |
5 | var str = "Hello, playground"
6 |
--------------------------------------------------------------------------------
/templates/empty_osx.playground.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jimrutherford/Swift-Playground-Alfred-Workflow/65fae6e588d27e5b761719ce004aa5b5615f864c/templates/empty_osx.playground.zip
--------------------------------------------------------------------------------
/templates/empty_osx.playground/Results.playgrounddata:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jimrutherford/Swift-Playground-Alfred-Workflow/65fae6e588d27e5b761719ce004aa5b5615f864c/templates/empty_osx.playground/Results.playgrounddata
--------------------------------------------------------------------------------
/templates/empty_osx.playground/contents.xcplayground:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/templates/empty_osx.playground/section-1.swift:
--------------------------------------------------------------------------------
1 | // Playground - noun: a place where people can play
2 |
3 | import Cocoa
4 |
5 | var str = "Hello, playground"
6 |
--------------------------------------------------------------------------------