What’s New in Swift 2.0

04 / Nov / 2015 by Ashu Baweja 0 comments

One year ago, Apple released Swift, a brand new programming language for both iOS and OS X development and now they introduced Swift 2 with Xcode 7 this year. Swift 2 includes some new features such as improved error handling, availability check and , protocol extensions etc. Lets take the overview of new features.

Error handling :
1

API availability :
2

Protocol Extensions :
3

New Keywords :

    • guard

  • 4

    • defer
  • 5

    • repeat
  • 6

    print :
    7

    Measuring strings :
    8

    FOUND THIS USEFUL? SHARE IT

    Leave a Reply

    Your email address will not be published. Required fields are marked *