The TCA guys provide a [Case Study] (https://github.com/pointfreeco/swift-composable-architecture/blob/main/Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-SharedState.swift) for shared state using the ReducerProtocol
. I read the case study and nothing sinks in.
I understand the new ReducerProtocol
. I understand I can use an ObservedObject
with dependency injection. But I just can't fathom how to get plain-vanilla shared state working.
Would love to see some code to help me understand the simplest possible implementation of shared state with the new ReducerProtocol . . .