init(_:)

Creates a shared reference to a value using a shared key with a default value.

SharedKey.swift:68
init(_ key: (some SharedKey<Value>).Default)

Parameters

key

A shared key associated with the shared reference. It is responsible for loading and saving the shared reference’s value from some external source.