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 FoilDefaultStorage<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 FoilDefaultStorageOptional<T> where T : UserDefaultsSerializable