The Swift AI Playbook
IMPORTANT: This book is available at a discounted price because it's in early access – the Foundation Models chapter is available now, with new chapters coming soon.
Build AI-powered apps on Apple platforms
The AI revolution means every app in every industry is being re-invented, and with powerful tools like Foundation Models it has never been easier to build something great. If you want to hit the AI accelerator on your apps, this is the book for you!
- Hands-On Guides: This book covers the full AI stack you need to ship, from Foundation Models to external APIs, and shows you exactly how to wire it together.
- Instant Templates: Use my bundled Xcode project to experiment with proven AI solutions, then drop the code straight into your own apps and get moving faster.
- Proven Playbook: Skip the guesswork when integrating AI – get clear, battle-tested guidance for real results, backed by serious, reusable code samples.
- Real Solutions: Whether it’s Foundation Models, MLX, OpenAI, text-to-speech, or beyond, everything you need is explained and solved here.
What's in the book?
This is different from other books I've written – tutorials and tips, yes, but it will also be packed with pre-built, self-contained solutions you can apply to your projects in minutes. See a feature you want in your app? Just copy it from my project to yours, and you're done.
IMPORTANT: The Swift AI Playbook is being released chapter-by-chapter so you can start applying its techniques today.
The full book will contain chapters on:
- Foundation Models, Apple's powerful, private, on-device large language model – available now!
- Create ML, the fastest way to train linear regressors, image classifiers, and more.
- MLX, Apple's high-performance framework for training models on Apple Silicon.
- Speech to Text and Text to Speech, providing natural, voice-first ways for users to interact with your apps.
- Building with external APIs such as ChatGPT, including doing so without leaking your API keys.
- Extracting data from user content, so you can use AI to analyze pictures, PDFs, and more with confidence.
If you think you missed the AI wave, think again – you'll get everything you need to succeed in this one book.
The Hacking with Swift guarantee
We want everyone to be happy with all the Hacking with Swift courses they buy, both now and in the future, which is why all our books come with free lifetime Swift updates and free bonus content with our Frequent Flyer Club, and we also encourage folks to join our Slack community to help solve problems.
However, if you aren't happy with a course you bought from us, we offer a 30-day No Questions Asked refund policy. This applies to all books and video courses purchased through Gumroad, which is our primary distributor. So, if you aren't happy with your purchase, if you changed your mind, or if you just bought the wrong thing by accident, we can refund your purchase up to 30 days after it was made.
Any other questions?
You can email me at paul@hackingwithswift.com or tweet me @twostraws, and I'll do my best to help.
All currently released chapters, plus the bundled Xcode project packed with sample code.