About Me
Hi. My day job is building software for people who pay me to build software. In the evenings, I build software for people who don’t pay me to build software (myself included). I mostly write about building software on here. That probably doesn’t come as a shock.
Latest Post: FocusedValues in SwiftUI
In my last post, I wrote about using preferences in SwiftUI to make the shape of the graph do work for you. This post is something of an addendum to that, focused on focused values. We’ll look at how focused values work, and then see a few ways of taking advantage of them.
Here’s the one sentence explainer: the FocusedValues
system is like preferences but where the reducer function is “whichever values originates from a focused view wins.”
And if that doesn’t sell you, here’s the pitch for people familiar with AppKit or UIKit: a useful way of thinking about the FocusedValues
system is as a strongly typed, generalized version of the responder chain.