You really do not need to set up your own environment to start learning Swift programming. Reason is very simple, we already have set up Swift environment online, so that you can execute all the available examples online at the same time when you are doing your theory work. This gives you confidence in what you are reading and to check the result with different options. Feel free to modify any example and execute it online.
Try following example using Live Demo option available at the top right corner of the below sample code box:
let constA = 42 print(constA) let constB:Float = 3.14159 print(constB)
For most of the examples given in this tutorial, you will find Live Demo option, so just make use of it and enjoy your learning.