Contents

init(wrappedValue:_:store:)

Creates a property that can save and restore tab sidebar customizations.

Declaration

init(wrappedValue: Value = TabViewCustomization(), _ key: String, store: UserDefaults? = nil) where Value == TabViewCustomization

Parameters

  • wrappedValue:

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

  • key:

    The key to read and write the value to in the user defaults store.

  • store:

    The user defaults store to read and write to. A value of nil will use the user default store from the environment.

Discussion

You can set this customization on the TabView using tabViewCustomization(_:).

See Also

Storing a value