---
title: "init(wrappedValue:_:store:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/appstorage/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`: 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

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

## See Also

### Storing a value

- [init(_:store:)](swiftui/appstorage/init(_:store:).md)
