The project source code for hackingwithswift.com
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
Project37 Updated for Swift 4.1. Mar 30, 2018
Project38 Updated for Swift 4.1. Mar 30, 2018
project1-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project1 Updated for Swift 4.1. Mar 30, 2018
project10 Updated for Swift 4.1. Mar 30, 2018
project11-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project11 Updated for Swift 4.1. Mar 30, 2018
project12a Updated for Swift 4.1. Mar 30, 2018
project12b Updated for Swift 4.1. Mar 30, 2018
project13 Updated for Swift 4.1. Mar 30, 2018
project14-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project14 Updated for Swift 4.1. Mar 30, 2018
project15-files Updated for Swift 4. Sep 21, 2017
project15 Updated for Swift 4.1. Mar 30, 2018
project16 Updated for Swift 4.1. Mar 30, 2018
project17-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project17 Updated for Swift 4.1. Mar 30, 2018
project18 Updated for Swift 4.1. Mar 30, 2018
project19 Updated for Swift 4.1. Mar 30, 2018
project2-files Updated for Swift 4. Sep 21, 2017
project2 Updated for Swift 4.1. Mar 30, 2018
project20-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project20 Updated for Swift 4.1. Mar 30, 2018
project21 Updated for Swift 4.1. Mar 30, 2018
project22 Updated for Swift 4.1. Mar 30, 2018
project23-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project23 Updated for Swift 4.1. Mar 30, 2018
project24.playground Updated for Swift 4. Sep 21, 2017
project25 Updated for Swift 4.1. Mar 30, 2018
project26-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project26 Updated for Swift 4.1. Mar 30, 2018
project27-files Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project27 Updated for Swift 4.1. Mar 30, 2018
project28-files Updated for Swift 4. Sep 21, 2017
project28 Updated for Swift 4.1. Mar 30, 2018
project29-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project29 Updated for Swift 4.1. Mar 30, 2018
project3-files/Content Updated to be compatible with Xcode 7 and Swift 2. Sep 20, 2015
project3 Updated for Swift 4.1. Mar 30, 2018
project30-files Updated for Swift 4.1. Mar 30, 2018
project31 Updated for Swift 4.1. Mar 30, 2018
project32 Updated for Swift 4.1. Mar 30, 2018
project33 Removed two errant uses of string characters. Apr 10, 2018
project34 Updated for Swift 4.1. Mar 30, 2018
project35.playground Updated for Swift 4. Sep 21, 2017
project36-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project36 Updated for Swift 4.1. Mar 30, 2018
project37-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project37 Updated for Swift 4. Sep 21, 2017
project38-files Updated for Swift 4. Sep 21, 2017
project38/Project38 Updated for Swift 4. Sep 21, 2017
project39-files Updated all projects for Swift 3.0 and iOS 10. Sep 2, 2016
project39 Updated for Swift 4.1. Mar 30, 2018
project4 Updated for Swift 4.1. Mar 30, 2018
project5-files Updated for Swift 4. Sep 21, 2017
project5 Removed two errant uses of string characters. Apr 10, 2018
project6-files Updated for Swift 4. Sep 21, 2017
project6a Updated for Swift 4.1. Mar 30, 2018
project6b Updated for Swift 4.1. Mar 30, 2018
project7-files Updated for Swift 4. Sep 21, 2017
project7 Updated for Swift 4.1. Mar 30, 2018
project8-files Updated for Swift 4. Sep 21, 2017
project8 Updated for Swift 4.1. Mar 30, 2018
project9-files Updated for Swift 4. Sep 21, 2017
project9 Updated for Swift 4.1. Mar 30, 2018
.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 for Swift 4.1. Mar 30, 2018

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 9 and iOS 11. 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 11 delivers seven all-new projects designed to teach you the new features of iOS 11 in depth, including Core ML, ARKit, PDFKit, Core NFC, and more.

Swift Coding Challenges is an all-new book written from the ground up to put your Swift 4 skills to the test. I've written a variety of coding challenges that start off simple but slowly get harder, and it's down to you to solve them. I outline each problem, provide you with sample input and output, add in some hints in case you hit problems, then provide a sample solution and explain how it works.

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