Overview
The Sharing package is a general purpose, state-sharing and persistence toolkit that works on all platforms supported by Swift, including iOS/macOS, Linux, Windows, Wasm, and more.
We released two versions of this package simultaneously: a 0.1 version that is a backwards-compatible version of the tools that shipped with the Composable Architecture <1.16, as well as a 1.0 version with some non-backwards compatible changes.
This is a backwards compatible change, but some new deprecations have been introduced. The @Shared property wrapper has been extracted to a separate library.
Staying on the backwards-compatible version
If you wish to remain on the backwards-compatible version of Sharing for the time being, then you can add an explicit dependency on the library to pin to any version less than 1.0:
.package(url: "https://github.com/pointfreeco/swift-sharing", from: "0.1.0"),
Upgrading to Sharing 1.0
If you are ready to upgrade to 1.0, then you can follow the 1.0 migration guide from that package.
Resources