Programare swift Swift tutorial from tutorials point | Page 16

Swift 4 Select Get started with a playground option and enter a name for playground and select iOS as platform. Finally, you will get the Playground window as follows: Following is the code taken from the default Swift 4 Playground Window. import UIKit var str = "Hello, playground" If you create the same program for OS X program, then it will include import Cocoa and the program will look like as follows: import Cocoa var str = "Hello, playground" 4