YouTip LogoYouTip

Swift Tutorial

# Swift Tutorial ![Image 2: Swift Tutorial](#) Swift is an open-source programming language that supports multiple programming paradigms and compilation. It was released by Apple at WWDC (Apple Worldwide Developers Conference) in 2014 for developing iOS, OS X, and watchOS applications. Swift combines the best of C and Objective-C without the constraints of C compatibility. Swift can use the same runtime environment as Objective-C on Mac OS and iOS platforms. On June 8, 2015, Apple announced at WWDC 2015 that Swift would become open source, including its compiler and standard library. * * * ## Who is suitable to read this tutorial? This tutorial is suitable for programmers who want to engage in mobile (iPhone) development or OS X application development. It is even better if you have prior programming experience. All examples in this tutorial are developed and tested based on Xcode 8.2.1 (Swift 3.0.2 syntax format). * * * ## First Swift Program The first Swift program naturally starts with outputting "Hello, World!", the code is as follows: ## Example /* My First Swift Program */var myString = "Hello, World!"print(myString) [Run Example Β»](#) **Example Analysis** * **var myString = "Hello, World!"** : Use the var keyword to define a variable myString with the value Hello, World! * **print** : Output the value of the variable * * * ## Related Resources * (https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html)
← Swift EnvironmentPython Exercise Example100 β†’