Initializer

init(wrappedValue:_:)

Creates a property that can save and restore data.

Declaration 宣言

init(wrappedValue: Value, _ key: String) where Value == Data

Parameters パラメータ

wrappedValue

The default value if data is not available for the given key.

key

a key used to save and restore the value.

Discussion 議論

Avoid storing large data blobs, such as image data, as it can negatively affect performance of your app.

See Also 参照

Storing a Value