finds.dev

twostraws/HackingWithSwift

The project source code for Hacking with iOS.

View on GitHub

★ 6,391SwiftUnlicenseupdated Jun 2025

// the take

The source code for Paul Hudson's free Hacking with Swift tutorial series, with one self-contained Xcode project per chapter in a Classic folder (UIKit and SpriteKit) and a SwiftUI folder. It's for someone working through the tutorials who wants a known-good version to compare against, not for anyone looking for a reusable library.

Chapters that need a from-scratch starting point get their own project file, so a reader can follow the tutorial without digging through a finished app. Asset folders such as project1-files and project11-files ship the images, audio, and .sks scene files the tutorials reference, so nothing has to be sourced separately. Because the code follows the prose chapter by chapter, it works as a reference for one step that went wrong, not only as a finished app.

The projects are written for teaching, so state often lives directly in views and there are few layers beyond what the tutorial needs. Copying them into a production app means refactoring first. The README links a SwiftUI article for iOS 26 but says the projects target Xcode 15 and iOS 17, and the last push was June 2025, so it's unclear which SDK the code has been checked against. Classic/Project37 is built on WatchKit, which Apple has deprecated, making it the least likely project to run cleanly today. Apart from a few template UI test targets, there's nothing to build or test from the command line, so Xcode version drift only gets caught when someone opens each project by hand.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
6,391
Forks
3,228
Language
Swift
License
Unlicense
Last commit
22 Jun 2025

// nearby

If HackingWithSwift isn't quite it.

All repos →