Ducks is a micro Redux implementation that borrows "a lot" of inspiration from the Composable Architecture. However, it is designed to be much simpler and a more barebones offering.
Ducks supports installation through SPM on iOS 13, macOS 10.15, tvOS & watchOS.
Simply add Ducks to your package manifest.
dependencies: [
.package(url: "https://github.com/alexLittlejohn/ducks.git", from: "1.0.0")
]
Check the Examples directory for the example app which will showcase how to use the framework as well as how to write tests for your features that use this library.
link |
Stars: 6 |
Last commit: 2 years ago |
A major release with a complete overhaul of the Redux pattern.
Effect
patternEffect
is essentially a Combine stream i.e. AnyPublisher<A, Never>
.Middleware
requirementEnvironment
object to encapsulate dependencies for side effectsReducer
function signature: typealias Reducer<A, S: Equatable, E> = (A, inout S, E) -> AnyPublisher<A, Never>
statePublisher
property which mirrors the @Published state
property.Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics