This is the source code to accompany Hacking with watchOS, a complete tutorial course teaching watchOS development using Swift and SwiftUI.
All the SwiftUI projects should be compatible with Xcode 14 and watchOS 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. There are also older WatchKit projects here that have not been updated; these are stored for reference only.
If you have questions, you can find me on Twitter @twostraws.
Hacking with iOS book contains over 2000 pages of tutorials and example code for both SwiftUI and UIKit, 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 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.
Swift Coding Challenges is a book written from the ground up to put your Swift 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.