Tag: defer

  • What is new in Swift 2.0

    Lots of new feature have been introduced as part of Swift 2.0. The list includes guard, repeat-while, defer, error handling, protocol extensions, print, pattern matching, early exits, UI Testing, UI Stackview etc. Let us see some of these cool features. guard, try and catch [code language=”swift”]func printISPDetails() { let url = NSURL(string: “http://www.telize.com/geoip”) let request…