A collection utilities for architecting SwiftUI apps in the Redux/Elm style of Reducers, Actions, Side Effects and Middlewares.
Swift Packages ->
Add Package Dependency and enter
You can add
CypherPoetReduxUtils as a dependency in your
let package = Package( //... dependencies: [ .package( url: "https://github.com/CypherPoet/CypherPoetReduxUtils", .upToNextMinor(from: "0.2.0") ), ], //... )
import CypherPoetReduxUtils wherever you’d like to use it.
🔑 Check out the main Example App to see how it composes different types of app
State into an app
Store, initializes a root store as a
@StateObject and injects it into into views as an
@EnvironmentObject, and then sends actions to the store as a response to events in the UI.
Storeis a composition of
Stateslices — each governed by a
Reducerthat knows how to listen for a set of dispatched
There aren't many to-dos here at the moment, but feedback and suggestions are certainly not discouraged. Check out some of the issue templates for more info.
📝 Note that this will only generate a
docs folder for you to view locally. This folder is being ignored by
git, as an action exists to automatically generate docs and serve them on the project's
This project wouldn't be possible without several enlightening projects, articles, and tutorials by others in the Swift community who latched onto using these patterns in SwiftUI. Here are just a few of its main inspirations:
CypherPoetReduxUtils is available under the MIT license. See the LICENSE file for more info.
|Last commit: 2 weeks ago|