Subscribe / Unsubscribe Enewsletters | Login | Register

Pencil Banner

Complete guide to Swift 3.0 and its new features

Lucy Hattersley | June 21, 2016
Apple has announced Swift 3.0. Here's everything you need to know about the Swift 3 app coding language and its new features

According to the document: "APIs. Interoperability with C++ libraries would enhance Swift's ability to work with existing libraries and APIs. However, C++ itself is a very complex language, and providing good interoperability with C++ is a significant undertaking that is out of scope for Swift 3.0."

Complete guide to Swift 3.0: How to download and install Xcode 8 beta

Installing the Xcode 8 beta

To experiment with the new features found in Swift 3.0, you'll need to download and install the Xcode 8 IDE (Integrated Developer Environment). Here is how to install the Xcode 8 beta on your Mac:

  1. Open Safari and visit developer.apple.com.
  2. Click Account and enter your Apple ID and password. Click Sign In.
  3. Select "By checking this box I confirm that I have read and agree to be bound by the Agreement above. I also confirm that I am of the legal age of majority in the jurisdiction in which I reside (at least 18 years of age in many countries)" and click Submit.
  4. Click Download Tools.
  5. Click Download Xcode 8 beta. The file will be saved to your Downloads folder.
  6. Double-click the Xcode_8_beta.xip file. Xip files are like zip files, but they are integrity checked against a checksum before expanding. It took around five minutes for us to expand the file.
  7. Drag the Xcode-beta file to the Applications folder. Double-click it to open. OS X will again verify the file before opening it. Click Open when the check has finished.
  8. Click Agree in the Xcode and iOS SDK License Agreement window.
  9. Enter your Admin password and click OK. (If an alert appears stating that programs like Xcode and iTunes must be quit first; click Quit All).

Now that you have Xcode 8 installed, you can start to try out Swift 3 programming and features. Click Get Started With a Playground or Create a New Xcode Project.

Complete guide to Swift 3.0: The Swift Programming Language book

The Swift 3 programming language

The last word on reference for Swift is Apple's The Swift Programming Language book. The latest version, The Swift Programming Language (Swift 3 beta) is available on the iBooks Store. Alternatively you can download an ePub of The Swift Programming Language from the swift.org website.

Source: Macworld 

 

Previous Page  1  2  3 

Sign up for CIO Asia eNewsletters.