---
title: "init(wrappedValue:_:store:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/scenestorage/init(wrappedvalue:_:store:)"
---

# init(wrappedValue:_:store:)

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

## Declaration

```swift
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`: A key used to save and restore the value.

## Discussion

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.
