The project source code for hackingwithswift.com
Swift JavaScript
Permalink
Failed to load latest commit information.
Project37 Updated project files for Xcode 8.2. Dec 13, 2016
Project38 Updated project files for Xcode 8.2. Dec 13, 2016
project1-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project1 Updated project files for Xcode 8.2. Dec 13, 2016
project10 Updated project files for Xcode 8.2. Dec 13, 2016
project11-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project11 Updated project files for Xcode 8.2. Dec 13, 2016
project12 Updated project files for Xcode 8.2. Dec 13, 2016
project13 Updated project files for Xcode 8.2. Dec 13, 2016
project14-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project14 Updated project files for Xcode 8.2. Dec 13, 2016
project15-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project15 Updated project files for Xcode 8.2. Dec 13, 2016
project16 Updated project files for Xcode 8.2. Dec 13, 2016
project17-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project17 Updated project files for Xcode 8.2. Dec 13, 2016
project18 Updated project files for Xcode 8.2. Dec 13, 2016
project19 Updated project files for Xcode 8.2. Dec 13, 2016
project2-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project2 Updated project files for Xcode 8.2. Dec 13, 2016
project20-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project20 Updated project files for Xcode 8.2. Dec 13, 2016
project21 Updated project files for Xcode 8.2. Dec 13, 2016
project22 Updated project files for Xcode 8.2. Dec 13, 2016
project23-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project23 Updated project files for Xcode 8.2. Dec 13, 2016
project24.playground Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project25 Updated project files for Xcode 8.2. Dec 13, 2016
project26-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project26 Updated project files for Xcode 8.2. Dec 13, 2016
project27-files Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project27 Updated project files for Xcode 8.2. Dec 13, 2016
project28-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project28 Updated project files for Xcode 8.2. Dec 13, 2016
project29-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project29 Updated project files for Xcode 8.2. Dec 13, 2016
project3-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project3 Updated project files for Xcode 8.2. Dec 13, 2016
project30-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project31 Updated project files for Xcode 8.2. Dec 13, 2016
project32 Updated project files for Xcode 8.2. Dec 13, 2016
project33 Updated project files for Xcode 8.2. Dec 13, 2016
project34 Updated project files for Xcode 8.2. Dec 13, 2016
project35.playground Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project36-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project36 Updated project files for Xcode 8.2. Dec 13, 2016
project37-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project37 Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project38-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project38/Project38 Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project39-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project39 Updated project files for Xcode 8.2. Dec 13, 2016
project4 Updated project files for Xcode 8.2. Dec 13, 2016
project5-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project5 Updated project files for Xcode 8.2. Dec 13, 2016
project6-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project6a Updated project files for Xcode 8.2. Dec 13, 2016
project6b Updated project files for Xcode 8.2. Dec 13, 2016
project7-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project7 Updated project files for Xcode 8.2. Dec 13, 2016
project8-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project8 Updated project files for Xcode 8.2. Dec 13, 2016
project9-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project9 Updated project files for Xcode 8.2. Dec 13, 2016
.gitignore Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
LICENSE Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
README.md Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016

README.md

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 8 and iOS 10. 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 1300 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!

Pro Swift is the sequel to Hacking with Swift, and includes a 250-page guide to helping you write faster, more efficient Swift, accompanied by over 70 videos demonstrating each technique. If you want to dive into functional programming, learn more about MVVM, get to grips with @autoclosure and @escaping, or try your hand at protocol-oriented development, Pro Swift is for you.

Practical iOS 10 delivers seven all-new projects designed to teach you the new features of iOS 10 in depth, including iMessage apps, SiriKit, rich notifications, speech recognition, Core Spotlight app integration, and more.

If you're looking to complete your iOS knowledge, Objective-C for Swift Developers is a book that's designed to teach you Objective-C as fast as possible by drawing parallels between it and Swift. It also includes a video walkthrough where I recreate a Hacking with Swift project in Objective-C, so you can see exactly how both languages compare.

New features of Swift 2.0 in depth:

I've also written some other free tutorials you might enjoy: