Hacking with Swift
This is the source code to accompany Hacking with Swift, a free tutorial series that teaches Swift coding for iOS.
All projects should be compatible with Xcode 7.0 and iOS 9. Where appropriate, separate project files have been provided so that you can follow the tutorial from scratch without having to dig around in the completed project folder.
If you have questions, you can find me on Twitter @twostraws.
Recommended links
The Hacking with Swift book contains over 1200 pages of tutorials and example code, and makes a great addition to any developer's collection. Thank you to everyone who bought the book – your purchase helps me create more great Swift content in the future!
- What's new in Swift 2.2? (includes video)
- What's new in Swift 2? (includes video)
- What's new in iOS 9?
- Free Swift example code
New features of Swift 2.0 in depth:
- Error handling in Swift 2: try, catch, do and throw
- The guard keyword in Swift 2: early returns made easy
- The defer keyword in Swift 2: try/finally done right
- Availability checking in Swift 2: backwards compatibility the smart way
I've also written some other free tutorials you might enjoy: