pointfreeco / swift-composable-architecture

A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
https://www.pointfree.co/collections/composable-architecture
MIT License
12.07k stars 1.41k forks source link

Add a SharedReader.constant helper. #3127

Closed mbrandonw closed 2 months ago

mbrandonw commented 2 months ago

Inspired by #3124, this helper may help when needing to provide SharedReader values in previews and tests.

At the end of the day it is only a helper for doing Shared(value).reader, so maybe not worth it.