Introduction to Swift Programming

Many of you must have heard about Swift programming language. Swift is a powerful programming language for ios, os x, watch os and tv os apps. It is easy to use and understand. Development in swift code is quite interactive and fun. Unlike many other programming languages, the syntax is concise. The software developed in swift runs very fast and it is safe by design. Development in Swift was started in July 2010 by Chris Lattner.

Swift designers took ideas from various other popular languages of that time such as Objective-C, Rust, Haskell, Ruby, Python, C#, and CLU.

Features of Swift Programming

Swift includes some features that makes the code easier to read and write.

  1. It supports inferred types to make code cleaner and less prone to mistakes.
  2. Also, in swift programming, memory is managed automatically.
  3. There is no need to use the semi-colons.
  4. It has powerful built-in error handling.
  5. It supports advanced control flow using- do, guard, defer and repeat keywords.
  6. It has fast and concise iteration over a range or collection.
  7. It has structs that supports method, extensions and protocols.
  8. It has tuples and multiple return values.
  9. It has closures unified with function pointers.
  10. It supports generics.

×