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:
A key used to save and restore the value.
Discussion
You can set this customization on the TabView using tabViewCustomization(_:).
The tab view customization is typically not added to SceneStorage, but instead stored in AppStorage so the customizations are consistent across different scenes.