[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6788":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},6788,"HackingWithSwift","twostraws\u002FHackingWithSwift","twostraws","The project source code for Hacking with iOS.","",null,"Swift",6325,3238,430,17,0,1,4,21,72.1,"The Unlicense",false,"main",true,[],"2026-06-12 04:00:30","# Hacking with Swift\n\nThis is the source code to accompany Hacking with Swift, [a free tutorial series that teaches Swift coding for iOS](https:\u002F\u002Fwww.hackingwithswift.com). There is one folder for the classic Hacking with Swift course, which teaches UIKit and SpriteKit, and another folder for the SwiftUI edition.\n\nAll SwiftUI projects should be compatible with Xcode 15 and iOS 17. 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.\n\nIf you have questions, you can find me on Twitter [@twostraws](https:\u002F\u002Fwww.twitter.com\u002Ftwostraws).\n\n\n## Recommended links\n\n- [Buy the Hacking with Swift book and support my work](https:\u002F\u002Fgumroad.com\u002Fl\u002Fhws-book-pack)\n\nThe 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!\n\n\n- [Buy the Pro Swift book and video course](https:\u002F\u002Fgumroad.com\u002Fl\u002Fproswift)\n\nPro 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.\n\n\n- [Buy Swift Coding Challenges](https:\u002F\u002Fgumroad.com\u002Fl\u002Fswiftcc)\n\nSwift Coding Challenges is an all-new 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.\n\n### Swift\n- [What's new in Swift 6.2?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F277\u002Fwhats-new-in-swift-6-2)\n- [What's new in Swift 6.1?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F276\u002Fwhats-new-in-swift-6-1)\n- [What's new in Swift 6.0?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F269\u002Fwhats-new-in-swift-6)\n- [What's new in Swift 5.9?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F258\u002Fwhats-new-in-swift-5-9)\n- [What's new in Swift 5.8?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F256\u002Fwhats-new-in-swift-5-8)\n- [What's new in Swift 5.7?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F249\u002Fwhats-new-in-swift-5-7)\n- [What's new in Swift 5.6?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F247\u002Fwhats-new-in-swift-5-6)\n- [What's new in Swift 5.5?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F233\u002Fwhats-new-in-swift-5-5)\n- [What's new in Swift 5.4?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F228\u002Fwhats-new-in-swift-5-4)\n- [What's new in Swift 5.3?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F218\u002Fwhats-new-in-swift-5-3)\n- [What's new in Swift 5.2?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F212\u002Fwhats-new-in-swift-5-2)\n- [What's new in Swift 5.1?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F182\u002Fwhats-new-in-swift-5-1)\n- [What's new in Swift 5.0?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F126\u002Fwhats-new-in-swift-5-0)\n- [What's new in Swift 4.2?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F77\u002Fwhats-new-in-swift-4-2)\n- [What's new in Swift 4.1?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F50\u002Fwhats-new-in-swift-4-1)\n- [What's new in Swift 4?](https:\u002F\u002Fwww.hackingwithswift.com\u002Fswift4)\n- [What's new in Swift 3?](https:\u002F\u002Fwww.hackingwithswift.com\u002Fswift3)\n\n### iOS\n- [What’s new in SwiftUI for iOS 26](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F278\u002Fwhats-new-in-swiftui-for-ios-26)\n- [What’s new in SwiftUI for iOS 18](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F270\u002Fwhats-new-in-swiftui-for-ios-18)\n- [What’s new in SwiftUI for iOS 17](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F260\u002Fwhats-new-in-swiftui-for-ios-17)\n- [What’s new in SwiftUI for iOS 16](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F250\u002Fwhats-new-in-swiftui-for-ios-16)\n- [What’s new in SwiftUI for iOS 15](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F235\u002Fwhats-new-in-swiftui-for-ios-15)\n- [What’s new in SwiftUI for iOS 14](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F221\u002Fwhats-new-in-swiftui-for-ios-14)\n- [What's new in iOS 13?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F193\u002Fwhats-new-in-ios-13)\n- [What's new in iOS 12?](https:\u002F\u002Fwww.hackingwithswift.com\u002Farticles\u002F121\u002Fwhats-new-in-ios-12)\n- [What's new in iOS 11?](https:\u002F\u002Fwww.hackingwithswift.com\u002Fwhats-new-in-ios-11)\n- [What's new in iOS 10?](https:\u002F\u002Fwww.hackingwithswift.com\u002Fios10)\n\n### Example Code\n- [Free Swift example code](https:\u002F\u002Fwww.hackingwithswift.com\u002Fexample-code)\n\n","HackingWithSwift 是一个配套于同名免费教程系列的项目源代码，旨在教授使用 Swift 进行 iOS 开发。该项目分为两个主要部分：经典版涵盖了 UIKit 和 SpriteKit 的教学，而 SwiftUI 版本则专注于最新的 SwiftUI 框架，并且所有 SwiftUI 项目都兼容 Xcode 15 和 iOS 17。此外，项目提供了独立的文件夹结构，方便学习者从零开始跟随教程实践，无需在完成的项目中寻找代码。此资源非常适合希望入门或提升 Swift 编程技能的开发者，特别是那些对 iOS 应用开发感兴趣的人士。",2,"2026-06-11 03:08:55","top_language"]