# ReSwift/ReSwift

Unidirectional Data Flow in Swift - Inspired by Redux

Repository: https://github.com/ReSwift/ReSwift
Canonical: https://ross.abutalabs.com/products/reswift
Homepage: http://reswift.github.io/ReSwift/
Language: Swift
License: MIT
License Family: permissive
Topics: reswift, swift, unidirectional-data-flow, redux
Last push: 2024-04-22T14:51:58+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3914, "days_push": 863, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7590, forks 518 (observed 2026-08-28T04:10:01.819951+00:00)

## What it is
ReSwift is a Redux-inspired Swift library implementing unidirectional data flow architecture. It centralizes app state in a single store, mutated only via dispatched actions handled by reducers, with views automatically updating on state changes.

## Use cases
- manage app state in an iOS app with unidirectional data flow
- implement Redux-style architecture in Swift
- make SwiftUI or UIKit views reflect a single source of truth
- debug app state changes predictably with actions and reducers
- coordinate state across many collaborators on a large Swift codebase

## When to choose
- you're building an iOS, macOS, tvOS, or watchOS app and want Redux-like predictable state management
- your team struggles with scattered, hard-to-debug mutable state
- you want a tiny, readable library you can fully understand and extend

## When to avoid
- you're not developing in Swift or targeting Apple platforms
- your app is small enough that a simple architecture suffices and Redux boilerplate adds overhead
- you need a framework with first-class SwiftUI bindings or active feature development

## Facets
- artifact type: library
- maturity: maintenance
- function: state-management, ui-components
- domain: mobile-development, frontend, web-development
- platform: cross-platform
- tags: redux, unidirectional-data-flow, swift, architecture-pattern, apple-platforms, ios, macos

## Member repositories
- ReSwift/ReSwift (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:01.819951+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:36:53.390045+00:00, confidence not recorded.
  - readme: https://github.com/ReSwift/ReSwift (fetched 2026-08-28T04:10:01.819951+00:00, sha 8ccc8683b728)
  - homepage: http://reswift.github.io/ReSwift/ (fetched 2026-08-29T08:32:10.822030+00:00, sha 9687abca7ed2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
