Swift ARTICLE

History of Swift

swift image
Designed by: Chris Lattner, Doug Gregor, John McCall, Ted Kremenek, Joe Groff, Apple

Swift is a general-purpose, multi-paradigm, compiled programming language developed by Apple Inc. and the open-source community. First released in 2014, Swift was developed as a replacement for Apple's earlier programming language Objective-C, as Objective-C had been largely unchanged since the early 1980s and lacked modern language features. Swift works with Apple's Cocoa and Cocoa Touch frameworks, and a key aspect of Swift's design was the ability to interoperate with the huge body of existing Objective-C code developed for Apple products over the previous decades.

Swift Introduction

What is Swift?

Swift Syntax

        
        /* My first program in Swift 4 */
         var myString  = "Hello, World!"

        print ( myString ) 
        
      
        
          import UIKit
          var  myString = "Hello, World!"
          print ( myString ) 
        
      

Printing in Swift

        
        print ( "Items to print", separator: "Value " , terminator: "Value" ) 

          print ( "Value one")

          print ( "Value one","Value two", separator: " Next Value" , terminator: " End" ) 

        
      

Swift Variables