{"id":29507,"date":"2015-11-04T10:33:18","date_gmt":"2015-11-04T05:03:18","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=29507"},"modified":"2015-11-04T10:33:18","modified_gmt":"2015-11-04T05:03:18","slug":"whats-new-in-swift-2-0","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/whats-new-in-swift-2-0\/","title":{"rendered":"What\u2019s New in Swift 2.0"},"content":{"rendered":"<p>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.<\/p>\n<p><strong>Error handling :<\/strong> <br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/11\/11.png\" alt=\"1\" width=\"700\" height=\"495\" class=\"alignnone size-full wp-image-29530\" \/><\/p>\n<p><strong>API availability :<\/strong><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/11\/21.png\" alt=\"2\" width=\"700\" height=\"130\" class=\"alignnone size-medium wp-image-29531\" \/><\/p>\n<p><strong>Protocol Extensions :<\/strong><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/11\/31.png\" alt=\"3\" width=\"700\" height=\"169\" class=\"alignnone size-medium wp-image-29532\" \/><\/p>\n<p><strong>New Keywords :<\/strong><\/p>\n<li>\n<ul><strong>guard<\/strong><\/ul>\n<p><\/li>\n<p>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/11\/42.png\" alt=\"4\" width=\"700\" height=\"336\" class=\"alignnone size-full wp-image-29546\" \/><\/p>\n<li>\n<ul><strong>defer<\/strong><\/ul>\n<\/li>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/11\/52.png\" alt=\"5\" width=\"700\" height=\"193\" class=\"alignnone size-medium wp-image-29547\" \/><\/p>\n<li>\n<ul><strong>repeat<\/strong><\/ul>\n<\/li>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/11\/61.png\" alt=\"6\" width=\"700\" height=\"113\" class=\"alignnone size-medium wp-image-29535\" \/><\/p>\n<p><strong>print : <\/strong><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/11\/72.png\" alt=\"7\" width=\"700\" height=\"125\" class=\"alignnone size-medium wp-image-29548\" \/><\/p>\n<p><strong>Measuring strings :<\/strong><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/11\/81.png\" alt=\"8\" width=\"700\" height=\"86\" class=\"alignnone size-medium wp-image-29537\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":172,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1},"categories":[1400,1772,1],"tags":[2715,2714,887],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/29507"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/172"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=29507"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/29507\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=29507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=29507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=29507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}