# CasePaths

> Key paths for Swift enum cases

Source: https://talira.ai/catalog/casepaths-q466smfy
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / functional programming](https://talira.ai/categories/libraries/functional-programming), [languages / swift](https://talira.ai/categories/languages/swift)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Point-Free](https://talira.ai/orgs/point-free.md)

CasePaths extends Swift's key path hierarchy to enum cases: annotate an enum with the `@CasePathable` macro and you can abstractly extract, embed and modify an enum case's associated value the way key paths work for struct and class properties. It's from Point-Free.

## Links

- Website: https://www.pointfree.co/collections/enums-and-structs/case-paths
- GitHub: https://github.com/pointfreeco/swift-case-paths

## Problems it solves

- work with enum associated values generically in Swift
- key path-style access to enum cases in Swift
- modify an enum case's payload without a switch in Swift

## Features

- key paths for enum cases
- @CasePathable macro
- extract, embed and modify associated values

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.47, adoption 0.60, momentum 0.34, community 0.60, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 3 commits in the last 90 days
- latest release 1.10.0 3 months ago
- 1.1k GitHub stars
- 31 contributors
- backed by Point-Free

## Sources

[^1]: https://github.com/pointfreeco/swift-case-paths/blob/main/LICENSE (checked 29 Nov 2026)
