Apple Updates Swift To Version 4

Last week, Apple updated their Swift programming language to version 4. Initially released during WWDC in 2014, Swift replaced the Objective C language developers were working with to create iOS, macOS, watchOS and tvOS applications. There’s a compatibility mode that supports Swift 3 code and you can combine new and old code as the previous version and the new can peacefully coexist.

The migration process is reasonably straight forward with an option in the Edit menu of Xcode 9 or through the Issue Navigator to access the Swift Migration Assistant. Any errors or issues show up in the Report navigator as “Convert” entries.

A set of release notes goes through all the ins and outs of the update and, if you’ve got a spare hour up your sleeve, there’s a video going through all the new tidbits in Apple’s programming language of choice.

Swift Playgrounds, the iPad app that gamifies software development with Swift, was recently updated as well, to take advantage of the new feature in the updated language.


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


Leave a Reply