Monday, 23 March 2020

Swift : Introduction of Swift/playground

Swift Introduction:

Swift was introduce at Apple's 2014 Worldwide Developers (WWDC),it underwent and upgrade to version 1.2 during 2014, and a more major upgraded to swift 2 at WWDC 2015. Initially a propriety language, it was annouced that Swift 2 would become open source later that year, supporting iOS, OS X and Linux.
   Swift took language ideas "from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list". Swift is a new language design by Apple for developing iOS and OS X applications. It takes the best parts of C and Objective-C and adapts them with modern features and patterns. Swift compiled programs will run on iOS7 or newer an OS X 10.9(Mavericks) or newer.
    Swift is intended to be more resilient to erroneous code ("safer") than objective-C, and also more concise. It is built with the LLVM compiler framework included in Xcode 6, and uses the objective-C runtime , allowing C, Objective C, C++ and Swift code to learn within a single program.
   The two main goals for the language are compatibility with the Cocoa and Cocoa Touch frameworks and safety. If you've been using Objective-C, especially the modern syntax, Swift will feel familiar.

An Introduction of the Swift Playground:




A playground is an interactive environment where Swift code can be entered and executed with the results appearing in real-time. This makes an ideal environment in which to learn the syntax of Swift without the need to work continuously through the edit/compile/run/debug cycle that would ordinarily accompany a standard Xcode iOS project.
    Assuming you've installed Xcode 6 (or up), launch the application(by clicking the Xcode icon in Launchpad).You'll see a startup dialog.
Previous Post
Next Post

post written by:

0 Reviews: