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 == TabViewCustomizationParameters
- 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
nilwill use the user default store from the environment.
Discussion
You can set this customization on the TabView using tabViewCustomization(_:).