Initializer

init(wrappedValue:_:)

Creates a property that can save and restore an integer.

Declaration 宣言

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

Parameters パラメータ

wrappedValue

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

key

a key used to save and restore the value.

See Also 参照

Storing a Value