Description
π Observation has allowed us to get rid of a number of view wrappers the Composable Architecture
used to require in favor of vanilla SwiftUI views, instead, but we still depend on a zoo of
view modifiers to drive navigation. Let's rethink all of these helpers and see if we can trade
them out for simpler, vanilla SwiftUI view modifiers, instead.
π We've studied `Equatable` and `Hashable`, their laws, and saw how value types as simple bags of data easily conform via "structural" equality. What about reference types? Reference types are an amalgamation of data _and_ behavior, and that data can be mutated in place at any time, so how can...
Published 10/21/24
π While the documentation for `Equatable` discusses the notions of "equivalence relation" _and_ "substitutability", there are conformances in the Standard Library that run afoul, but for pragmatic reasons. Letβs explore them and then dive deeper into a related protocol: `Hashable`.
Published 10/14/24