Walt Disney once said, “there is no magic in magic, it’s all in the details.” The same is very much true of SwiftUI: it’s easy to look at it and think there’s all sorts of magic happening to make it work so efficiently, when really if you look behind the curtain you’ll start to see exactly how it works – and in doing so gain a better understanding of how to use it.
Today is our first technique project, and we’re focusing on two fundamental components of SwiftUI: views and modifiers. We’ve been using these already, but we’ve kind of glossed over exactly how they work. Well, that ends today: we’ll be going through lots of details about what they are, how they work, and why they work that as they do.
If everything goes to plan, the end result will be lots less magic and lots more detail – you’ll still enjoy using SwiftUI, but you’ll know exactly what makes it tick.
Today you have 11 topics to work through, in which you’ll learn to build custom view modifiers, custom containers, and more.
Need help? Tweet me @twostraws!
SPONSORED ViRE offers discoverable way of working with regex. It provides really readable regex experience, code complete & cheat sheet, unit tests, powerful replace system, step-by-step search & replace, regex visual scheme, regex history & playground. ViRE is available on Mac & iPad.
Link copied to your pasteboard.