Many people are keen to learn SwiftUI in the fastest way possible, which is why I wrote SwiftUI By Example: a comprehensive, free collection of example code that helps you get started with SwiftUI today.
I’ve been busy working with SwiftUI since the moment it was launched, and spent most of WWDC at the SwiftUI labs peppering Apple’s engineers with questions – what’s the best way to do X? Why does Y do Z? How does Q work? And more – all so that I could get stuck into the framework as fast as possible.
After only a few days I had already converted six apps from UIKit to SwiftUI, and I’ve converted another 10 more since – each time figuring out better and better ways to solve common problems efficiently.
If you want to learn SwiftUI, you’re more than welcome to follow the same path I did: read through all the documentation, watch all the WWDC videos, talk to Apple’s engineers directly, then write several thousand lines of code and refactor it repeatedly until it’s polished.
Alternatively, you can just read my book SwiftUI By Example. It is quite literally the collection of all my findings so far: all the problems I hit and how they were solved, all the questions I asked and the answers I received, and all the code I wrote and how it helps you get ahead now rather than repeating all the time and effort I already put in.
SwiftUI By Example is available to read free online right here: https://www.hackingwithswift.com/quick-start/swiftui.
If you want, you can also buy a download edition of the book so you can read offline and support my work. That’s available here: https://gumroad.com/l/swiftui.
Apart from one being online and the other being offline, the two editions are identical. Yes, that means you can learn SwiftUI for free today, all using the online edition – you don’t need to pay anything.
SwiftUI is an extraordinarily exciting new technology that is going to completely change the way we build apps for Apple’s platforms. Right now I’m doing everything I can to help folks get started, and SwiftUI By Example is just the first step – more will come soon!
Paul Hudson is the creator of Hacking with Swift, the most comprehensive series of Swift books in the world. He's also the editor of Swift Developer News, the maintainer of the Swift Knowledge Base, and Mario Kart world champion. OK, so that last part isn't true. If you're curious you can learn more here.