Contents

AppStorage

A property wrapper type that reflects a value from UserDefaults and invalidates a view on a change in value in that user default.

Declaration

@frozen @propertyWrapper struct AppStorage<Value>

Topics

Storing a value

Getting the value

See Also

Saving state across app launches