---
title: ComposableArchitecture
description: The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).
source: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture
timestamp: 2026-11-23T16:31:58.617Z
---

**Framework**

# ComposableArchitecture

> The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).

## Additional Resources

- [swift-composable](https://github.com/pointfreeco/swift-composable-architecture)
- [discussions](https://github.com/pointfreeco/swift-composable-architecture/discussions)
- [composable](https://www.pointfree.co/collections/composable-architecture)

## Overview

This library provides a few core tools that can be used to build applications of varying purpose and complexity. It provides compelling stories that you can follow to solve many problems you encounter day-to-day when building applications, such as:

- **State management**

How to manage the state of your application using simple value types, and share state across many screens so that mutations in one screen can be immediately observed in another screen.
- **Composition**

How to break down large features into smaller components that can be extracted to their own, isolated modules and be easily glued back together to form the feature.
- **Side effects**

How to let certain parts of the application talk to the outside world in the most testable and understandable way possible.
- **Testing**

How to not only test a feature built in the architecture, but also write integration tests for features that have been composed of many parts, and write end-to-end tests to understand how side effects influence your application. This allows you to make strong guarantees that your business logic is running in the way you expect.
- **Ergonomics**

How to accomplish all of the above in a simple API with as few concepts and moving parts as possible.

## Essentials

- [Getting started](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/gettingstarted) Learn how to integrate the Composable Architecture into your project and write your first application.
- [Dependencies](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/dependencymanagement) Learn how to register dependencies with the library so that they can be immediately accessible from any reducer.
- [Testing](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/testingtca) Learn how to write comprehensive and exhaustive tests for your features built in the Composable Architecture.
- [Navigation](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/navigation) Learn how to use the navigation tools in the library, including how to best model your domains, how to integrate features in the reducer and view layers, and how to write tests.
- [Sharing state](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/sharingstate) Learn techniques for sharing state throughout many parts of your application, and how to persist data to user defaults, the file system, and other external mediums.
- [Performance](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/performance) Learn how to improve the performance of features built in the Composable Architecture.
- [Frequently asked questions](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/faq) A collection of some of the most common questions and comments people have concerning the library.

## Tutorials

- [Meet the Composable Architecture](/tutorials/meetcomposablearchitecture) The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).
- [Building SyncUps](/tutorials/buildingsyncups) The SyncUps application is a recreation of one of Apple’s more interesting demo applications, Scrumdinger. We recreate it from scratch using the Composable Architecture, with a focus on domain modeling, controlling dependencies, and testability.

## State management

- [Reducer](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/reducer) A protocol that describes how to evolve the current state of an application to the next state, given an action, and describes what s should be executed later by the store, if any.
- [Effect](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/effect)
- [Store](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/store) A store represents the runtime that powers the application. It is the object that you will pass around to views that need to interact with the application.
- [Sharing state](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/sharingstate) Learn techniques for sharing state throughout many parts of your application, and how to persist data to user defaults, the file system, and other external mediums.

## Testing

- [TestStore](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/teststore) A testable runtime for a reducer.
- [Testing](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/testingtca) Learn how to write comprehensive and exhaustive tests for your features built in the Composable Architecture.

## Integrations

- [Adopting Swift concurrency](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/swiftconcurrency) Learn how to write safe, concurrent effects using Swift’s structured concurrency.
- [SwiftUI Integration](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/swiftuiintegration) Integrating the Composable Architecture into a SwiftUI application.
- [Observation backport](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/observationbackport) Learn how the Observation framework from Swift 5.9 was backported to support iOS 16 and earlier, as well as the caveats of using the backported tools.
- [UIKit Integration](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/uikit) Integrating the Composable Architecture into a UIKit application.

## Migration guides

- [Migration guides](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/migrationguides) Learn how to upgrade your application to the newest version of the Composable Architecture.

## Protocols

- [ViewAction](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/viewaction) Defines the actions that can be sent from a view.
- [ViewActionSending](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/viewactionsending) A type that represents a view with a  that can send s.

## Structures

- [AppStorageKeyPathKey](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/appstoragekeypathkey) A type defining a user defaults persistence strategy via key path.
- [Send](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/send) A type that can send actions back into the system when used from .

## Functions

- [InMemoryFileStorage()](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/inmemoryfilestorage())
- [LiveFileStorage()](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/livefilestorage())

## Macros

- [ObservableState()](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/observablestate()) Defines and implements conformance of the Observable protocol.
- [ViewAction(for:)](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/viewaction(for:)) Provides a view with access to a feature’s s.

## Enumerations

- [Exhaustivity](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/exhaustivity) The exhaustivity of assertions made by the test store.
- [IdentifiedAction](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/identifiedaction) A wrapper type for actions that can be presented in a list.

## Extended Modules

- [PerceptionCore](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/perceptioncore)
- [Sharing](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/sharing)
- [SwiftNavigation](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/swiftnavigation)
- [SwiftUICore](/external/https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/1.23.1/documentation/composablearchitecture/swiftuicore)

## Related Documentation

- [Point-Free Videos](https://www.pointfree.co/collections/composable-architecture)

---

*Extracted by [sosumi.ai](https://sosumi.ai) - Making Apple docs AI-readable.*
*This is unofficial content. All documentation belongs to Apple Inc.*
