Structures

The following structures are available globally.

  • A property wrapper that uses UserDefaults as a backing store, whose wrappedValue is non-optional and registers a non-optional default value.

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct WrappedDefault<T> where T : UserDefaultsSerializable
  • A property wrapper that uses UserDefaults as a backing store, whose wrappedValue is optional and does not provide default value.

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct WrappedDefaultOptional<T> where T : UserDefaultsSerializable