redux VS swift-composable-architecture

Compare redux vs swift-composable-architecture and see what are their differences.

redux

Predictable state container for JavaScript apps (by reduxjs)

swift-composable-architecture

A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. (by pointfreeco)
Our great sponsors
  • Amplication - open-source Node.js backend code generator
  • Appwrite - The open-source backend cloud platform
  • SurveyJS - A Non-Cloud Alternative to Google Forms that has it all.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Sonar - Write Clean JavaScript Code. Always.
  • Mergify - Updating dependencies is time-consuming.
redux swift-composable-architecture
251 58
59,952 9,663
0.3% 4.9%
8.8 9.4
10 days ago 4 days ago
TypeScript Swift
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

redux

Posts with mentions or reviews of redux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-15.

swift-composable-architecture

Posts with mentions or reviews of swift-composable-architecture. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-14.
  • Koji je vas odnos prema alternativnim hype-ovanim paradimama programiranja, frameworcima i tehnologijama?
    2 projects | /r/programiranje | 14 Jun 2023
    Razliciti alternativni frameworci i arhitekture - Recimo, na pamet mi padaju Composable Architecture (https://github.com/pointfreeco/swift-composable-architecture) i RIBs arhitektura (https://github.com/uber/RIBs). Ok, ove arhitekture resavaju neke probleme. Ali da li problemi koje te arhitekture resavaju solidan developer ne moze sam da resi bez vendor locka za kreatore tih arhitektura. Jesu one open-source, ali meni je rizik da se vezujem za bilo sta sto sutra moze da prestane da se odrzava.
  • What is a piece of code (or Framework, extension, etc.) that you add in every new project?
    6 projects | /r/swift | 24 Feb 2023
    At a minimum, Composable Architecture, and now Dependencies from Point-Free.
  • Ideal architecture for an app entirely in SwiftUI? Example code repo would be great
    4 projects | /r/SwiftUI | 21 Feb 2023
    I’ve built a couple of apps with this framework: https://github.com/pointfreeco/swift-composable-architecture
  • Trouble building for ios device
    7 projects | /r/bazel | 23 Nov 2022
    load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "com_github_buildbuddy_io_rules_xcodeproj", sha256 = "564381b33261ba29e3c8f505de82fc398452700b605d785ce3e4b9dd6c73b623", url = "https://github.com/buildbuddy-io/rules_xcodeproj/releases/download/0.9.0/release.tar.gz", ) http_archive( name = "cgrindel_rules_spm", sha256 = "03718eb865a100ba4449ebcbca6d97bf6ea78fa17346ce6d55532312e8bf9aa8", strip_prefix = "rules_spm-0.11.0", url = "https://github.com/cgrindel/rules_spm/archive/v0.11.0.tar.gz", ) load( "@cgrindel_rules_spm//spm:defs.bzl", "spm_pkg", "spm_repositories", ) load( "@cgrindel_rules_spm//spm:deps.bzl", "spm_rules_dependencies", ) spm_rules_dependencies() load( "@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:repositories.bzl", "xcodeproj_rules_dependencies", ) xcodeproj_rules_dependencies() load( "@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies", ) apple_rules_dependencies() load( "@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies", ) swift_rules_dependencies() load( "@build_bazel_rules_swift//swift:extras.bzl", "swift_rules_extra_dependencies", ) swift_rules_extra_dependencies() load( "@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies", ) apple_support_dependencies() spm_repositories( name = "swift_pkgs", platforms = [ ".macOS(.v10_15)", ], dependencies = [ spm_pkg( url = "https://github.com/apple/swift-log.git", exact_version = "1.4.2", products = ["Logging"], ), spm_pkg( url = "https://github.com/pointfreeco/swift-composable-architecture.git", exact_version = "0.43.0", products = ["ComposableArchitecture"], ), spm_pkg( name = "Bow", url = "https://github.com/bow-swift/bow.git", exact_version = "0.8.0", products = ["Bow", "BowEffects", "BowOptics"], ), spm_pkg( url = "https://github.com/grpc/grpc-swift.git", exact_version = "1.7.3", products = ["GRPC"], ), spm_pkg( url = "https://github.com/hyperoslo/Cache", exact_version = "6.0.0", products = ["Cache"], ), ], )
  • What SwiftUI architecture are you all using?
    5 projects | /r/SwiftUI | 18 Oct 2022
    I’m fairly exclusive to https://github.com/pointfreeco/swift-composable-architecture. There is a learning curve to get started but I really enjoy working with it.
    5 projects | /r/SwiftUI | 18 Oct 2022
  • What apps should I make to get hired?
    2 projects | /r/iOSProgramming | 7 Sep 2022
    Look into some of the architectural patterns out there, find one that makes sense to you, and use that to build your app. For example, check out the Composable Architecture, Clean Architecture, VIPER, MVVM.
  • From Flutter development to iOS native development
    2 projects | /r/iOSProgramming | 1 Aug 2022
    You can find out more about it here.
  • SwiftUI for Mac 2022
    6 projects | news.ycombinator.com | 3 Jul 2022
    If you're interested in SwiftUI and care about feature composability, decent test coverage, dependency injection, isolated side effects, functional core and being able to use live previews properly, take a look at: https://github.com/pointfreeco/swift-composable-architecture

    Been using it at work for a moderately complex app (not a toy app by any means) and it's been fantastic. We're 7 months in and haven't hit any gotchas, but the learning curve can be a bit steep, especially for more junior iOS devs.

    Helps that they have a full video series taking you through the library and how they built it: https://www.pointfree.co/collections/composable-architecture

  • SwiftUI in 2022
    7 projects | news.ycombinator.com | 25 May 2022
    One point that's not being discussed enough -- using SwiftUI (since it's heavily value-typed / struct-based) prevents a whole host of problems around retain cycles, typically the bugbear of iOS dev. I recently built an iOS app from scratch with recent grads with zero Swift experience (but had done React).

    It was ~2mo before they even had to learn what a retain cycle was, and that was from using UIKit.

    Of course you still eventually see this if / when you use `@ObservedObjects` and their implementation, but in our case we were also using https://github.com/pointfreeco/swift-composable-architecture which hides this away as well.

What are some alternatives?

When comparing redux and swift-composable-architecture you can also consider the following projects:

zustand - 🐻 Bear necessities for state management in React

Clean Architecture for SwiftUI + Combine - SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

SWR - React Hooks for Data Fetching

valtio - 💊 Valtio makes proxy-state simple for React and Vanilla

remix - Build Better Websites. Create modern, resilient user experiences with web fundamentals.

react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]

tca-swiftui-navigation-demo - Demo project that shows how to implement navigation in SwiftUI iOS application using Swift Composable Architecture

effector-react - Business logic with ease ☄️

redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development

xstate - State machines and statecharts for the modern web.

iOS-Viper-Architecture - This repository contains a detailed sample app that implements VIPER architecture in iOS using libraries and frameworks like Alamofire, AlamofireImage, PKHUD, CoreData etc.

reflux - A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux