Instance Propertypointfreeco.swift-sharing 2.2.0Sharing
id
AppStorageKey.swift:251var id: AppStorageKeyID { get }
var id: AppStorageKeyID { get }
import Sharing
Instantly share state among your app’s features and external persistence layers, including user defaults, the file system, and more.
struct AppStorageKey<Value> where Value : Sendable
A type defining a user defaults persistence strategy.
struct AppStorageKeyID
func load(context: LoadContext<Value>, continuation: LoadContinuation<Value>)
func save(_ value: Value, context _: SaveContext, continuation: SaveContinuation)
func subscribe(context: LoadContext<Value>, subscriber: SharedSubscriber<Value>) -> SharedSubscription