Thursday, December 22, 2016

Swift Playgrounds

There is no better way to explore coding than actually writing code. Starting from Xcode 6, Apple introduced a new feature called Playgrounds. It's an interactive development environment for developers to experiment Swift programming and allows you to see the result of your code in real-time. Xcode 8 makes it even better for beginners to explore Swift. Surprisingly, you can now run Playgrounds on iPad too.

Lets launch Xcode














On the next page project name will be needed












When it is done the page looks like as below.












On the left pane of the screen, it is the editor area where you type your code. As you write your code, Playground immediately interprets your code and displays the result on the right pane. By default, Playground includes two lines of code. As you can see, the result of the str variable appears immediately on the right pane.

No comments:

Post a Comment