Swift Programming - A Swift Tour in Playground
Swift Programming 有一種互動式的開發環境叫做Playground;
Playground 可以在還沒 Compile & RUN 的狀況下, 提供一個快速反應 coding 結果的編輯模式!
Step1: Open Xcode 6 then Select "File -> New -> Playground"
Step2: Input file name of playground then press "Next", the playground file be created.
Step3: Xcode will create below template file for you, as you see, the right side shows the result of your code.
By the way, you can also create a playground file in your existing project, by following steps
StepA: In project navigator, press right button then select "New File"
StepB: Please select "Playground" as template
StepC: Input file name then press "Create", the playground file will be created in project navigator