Playground
Before diving into a mobile project, we will start with a special type of project that will help us master the Swift language. These projects are a cool place to experiment, without the extra hassle of setting up a real mobile project. We can experiment with real mobile functions, without even working on a full mobile project. Playground projects are a really nice place to prototype algorithms or UI, and simply to have small building blocks, ready and fully tested, before plugging them into a mobile app.
What is a playground?
Straight from the file generated by Xcode:
"Playground – noun: a place where people can play."
Playground is a simple project, which can be used to practice, experiment, prototype and play with code and the underlying OS. It's easy to write some code to sketch an idea or to clarify a concept. The best thing is that you can mix text (markup) with code. Also, it's possible to use the native functions that are specific for the platform (for example iOS). This makes...