swift-sharing
Sharing
Instantly share state among your app's features and external persistence layers, including user
Documentation Structure
Essentials
- Persistence strategies (Articles/PersistenceStrategies.md): Learn about the various persistence strategies that ship with the library, as well as how to create
- Mutating shared state (Articles/MutatingSharedState.md): Learn how to mutate shared state in a safe manner in order to prevent race conditions and data loss.
- Observing changes to shared state (Articles/ObservingChanges.md): Learn how to observe changes to shared state in order to update your UI or react to changes.
- Dynamic Keys (Articles/DynamicKeys.md): Learn how to dynamically change the key that powers your shared state.
- Deriving shared state (Articles/DerivingSharedState.md): Learn how to derive shared state to sub-parts of a larger piece of shared state.
- Reusable, type-safe keys (Articles/TypeSafeKeys.md): Learn how to define keys for your shared state that allow you to reference your data in a statically
- Initialization rules (Articles/InitializationRules.md): Learn the various ways to initialize shared state, both when using a persistence strategy and
- Testing (Articles/Testing.md): Learn how to test features that use shared state, even when persistence strategies are involved.
- Gotchas of @Shared (Articles/Gotchas.md): Learn about a few gotchas to be aware of when using shared state in your application.
Persistence
Custom persistence
Migration guides
- Migration guides (Articles/MigrationGuides.md): Learn how to upgrade your application to the newest version of Sharing.
Usage Notes
- Documentation is organized progressively from getting started to advanced topics
- Start with the Introduction or Getting Started section
- Consult specific guides for detailed information
License & Attribution
This skill contains content converted from DocC documentation format.
More from nonameplum/agent-skills
corebluetooth
Apple Core Bluetooth framework for BLE and Bluetooth Classic. Use for central/peripheral workflows, scanning, connecting, advertising, GATT services/characteristics, read/write/notify, L2CAP, background processing or state restoration, and error handling across Apple platforms.
42swift-package-manager
Swift Package Manager documentation - create packages, manage dependencies, build and test Swift code
32swift-health-kit
Apple HealthKit framework for health and fitness data. Use for reading/writing health samples, workout data, authorization flows, observer queries, background delivery, clinical records, activity rings, and integrating with the Health app across iPhone, Apple Watch, iPad, and visionOS.
30swift-composable-architecture
The Composable Architecture (TCA) - A library for building Swift applications with state management, composition, and testability
29swift-dependencies
A dependency management library for Swift with controlled, testable dependencies
26swift-docc
Official Swift DocC documentation markup and syntax reference
23