Swift Book PDF: The Swift Programming Language is back on Apple Books — plus PDF and EPUB archives
I wrote Swift Book PDF, a Python package to convert the DocC source for The Swift Programming Language book into polished PDF and EPUB editions.
PDF editions follow the familiar DocC rendering style used on docs.swift.org. EPUB editions follow the design of the Swift Book editions previously published on Apple Books through Swift 5.7. Both include formatting improvements while staying true to the original styles.
The Swift Programming Series is available on Apple Books, with optimized editions of The Swift Programming Language from Swift 5.8 onward.
Download PDF and EPUB editions across Swift releases from the Swift Book Archive.
Create your own customized edition of The Swift Programming Language with swift-book-pdf, with support for custom fonts, font sizes, and rendering styles.
Both swift-book-pdf and swift-book-archive repositories are available on GitHub and licensed under Apache License v2.0. swift-book-pdf requires Python 3.10+, and LuaTeX for creating PDF versions.
This project is not published by, endorsed by, or affiliated with Apple Inc. or the Swift.org open source project. See the Acknowledgments chapter in each edition for more details.
Feedback, issues, and ideas for improving the CLI and generated editions are welcome!
Thank you, man! I recently became interested in Swift programming, but I have never taken the big step, because I didn't know where to start. With your book I think I will finally be able to start my journey in Swift! Again, thank you very much for your contribution to the community, and happy coding :)
Welcome to the community and have fun learning Swift! I was going to post this later this week once the book was added to the Swift Programming Series by the Apple Books team, but worth talking about it now:
If you'd like to use the same book and keep your notes across Swift releases, I will be updating this edition with every new Swift version:
It will be Book 1 in the Series so folks can easily grab it when they find the Series link. For a reference pinned to a particular Swift version, you can still get version-specific editions.