talira

The Composable Architecture

A Swift library for building apps with composition, testing and ergonomics in mind

open sourceMITfree

The Composable Architecture (TCA) is a Swift library from Point-Free for structuring apps around state, actions and reducers. It covers state management with simple value types shared across screens, breaking large features into isolated modules that compose back together, side effects kept testable, and tests from single features to end-to-end flows. It works with SwiftUI, UIKit and more on every Apple platform (iOS, macOS, iPadOS, visionOS, tvOS and watchOS), installs with Swift Package Manager, and is MIT licensed.

Problems it solves

  • structure a growing SwiftUI app so features stay testable
  • share state between screens in my iOS app without bugs
  • test side effects like network calls in my Swift app

Features

  • state management with value types shared across screens
  • features composed from isolated modules
  • testable side effects
  • integration and end-to-end tests of composed features
  • works with SwiftUI and UIKit on every Apple platform