Declaration
compose().defaultAppStorage(store: string)nonisolated func defaultAppStorage(_ store: UserDefaults) -> some ViewParameters
store*stringThe user defaults to use as the default store for
AppStorage.
Discussion
If unspecified, the default store for a view hierarchy is
UserDefaults.standard, but can be set a to a custom one. For example,
sharing defaults between an app and an extension can override the
default store to one created with UserDefaults.init(suiteName:_).
See also
More in State and environment.