NEW! Master Swift design patterns with my latest book! >>

New features in Swift 2

Paul Hudson    June 11th 2015    @twostraws

I already wrote overviews of all the new features of Swift 2 and the new features in iOS 9, but I wanted to get into more depth with some of the Swift 2 language changes so you could start getting to grips with it.

So, I wrote four short articles explaining four key new features in Swift 2 syntax: try catch error handling, guard, defer and API availability checking.

You can work through them in any order you want – enjoy!

UPDATE: I put together a huge and free collection of Swift example code, so if you're upgrading your code you should definitely check it out.

About the author

Paul Hudson is the creator of Hacking with Swift, the most comprehensive series of Swift books in the world. He's also the editor of Swift Developer News, the maintainer of the Swift Knowledge Base, and Mario Kart world champion. OK, so that last part isn't true. If you're curious you can learn more here.

Download for free!

Want a free 75-minute video teaching functional programming, protocol-oriented programming, and more? This is your lucky day!

MASTER SWIFT NOW
Buy Practical iOS 12 Buy Pro Swift Buy Swift Design Patterns Buy Practical iOS 11 Buy Swift Coding Challenges Buy Server-Side Swift (Vapor Edition) Buy Server-Side Swift (Kitura Edition) Buy Hacking with macOS Buy Advanced iOS Volume One Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with Swift Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Beyond Code

Was this page useful? Let me know!

Click here to visit the Hacking with Swift store >>