Structures
The following structures are available globally.
-
A property wrapper that uses
See moreUserDefaults
as a backing store, whosewrappedValue
is non-optional and registers a non-optional default value.Declaration
Swift
@propertyWrapper public struct WrappedDefault<T> where T : UserDefaultsSerializable
-
A property wrapper that uses
See moreUserDefaults
as a backing store, whosewrappedValue
is optional and does not provide default value.Declaration
Swift
@propertyWrapper public struct WrappedDefaultOptional<T> where T : UserDefaultsSerializable