Programare swift Swift tutorial from tutorials point | Page 14

2. Swift 4 – Environment Swift 4 Try it Option Online You really do not need to set up your own environment to start learning Swift 4 programming. Reason is very simple, we already have set up Swift 4 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 the confidence in what you are reading and in addition to that, you can verify the result with different options. Feel free to modify any example and execute it online. Try the following example using the Try it option available at the top right corner of the following sample code box: import Cocoa /* My first program in Swift 4 */ var myString = "Hello, World!" print(myString) For most of the examples given in this tutorial, you will find a Try it option, so just make use of it and enjoy your learning. Local Environment Setup Swift 4 provides a Playground platform for learning purpose and we are going to setup the same. You need xCode software to start your Swift 4 coding in Playground. Once you are comfortable with the concepts of Swift 4, you can use xCode IDE for iSO/OS x application development. To start with, we consider you already have an account at Apple Developer website. Once you are logged in, go to the following link: Download for Apple Developers 2