appStorage(_:store:)

Creates a shared key that can read and write to a date user default.

AppStorageKey.swift:95
static func appStorage(_ key: String, store: UserDefaults? = nil) -> Self where Self == AppStorageKey<Date>

Parameters

key

The key to read and write the value to in the user defaults store.

store

The user defaults store to read and write to. A value of nil will use the user default store from dependencies.

Returns

A user defaults shared key.